You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gRPC client methods are not patched correctly (see below sample code). This may be related to #384.
'use strict';const{ NodeTracer }=require('@opentelemetry/node');const{ SimpleSpanProcessor }=require('@opentelemetry/tracing');const{ JaegerExporter }=require('@opentelemetry/exporter-jaeger');consttracer=newNodeTracer();constexporter=newJaegerExporter({serviceName: 'otel',});tracer.addSpanProcessor(newSimpleSpanProcessor(exporter));constexpress=require('express');constapp=express();const{Spanner}=require('@google-cloud/spanner');constprojectId='xxx';constinstanceId='yyy';constdatabaseId='zzz';constspanner=newSpanner({projectId});// Gets a reference to a Cloud Spanner instance and databaseconstinstance=spanner.instance(instanceId);constdatabase=instance.database(databaseId);// This incoming HTTP request should be captured by Traceapp.get('/',async(req,res)=>{// This outgoing HTTP request should be captured by Traceletdata='';try{constplayersTable=database.table('Players');constquery={columns: ['email'],keySet: {all: true,},};const[rows]=awaitplayersTable.read(query);rows.forEach(row=>{constjson=row.toJSON();data+=json.email+'\n';});res.status(200).send(data).end();}catch(err){console.error(err);res.status(500).end();}});// Start the serverconstPORT=process.env.PORT||8080;app.listen(PORT,()=>{console.log(`App listening on port ${PORT}`);console.log('Press Ctrl+C to quit.');});
The text was updated successfully, but these errors were encountered:
gRPC
client methods are not patched correctly (see below sample code). This may be related to #384.The text was updated successfully, but these errors were encountered: