69 questions
0
votes
1
answer
186
views
Google Cloud Trace Explorer not showing OpenTelemetry service name (Node.js on GKE)
I am using OpenTelemetry with Node.js in my application running on Google Kubernetes Engine (GKE).
The traces are successfully sent to Google Cloud Trace, but in Google Cloud Trace Explorer the ...
1
vote
1
answer
169
views
Google Cloud Platform Trace from Cloud Function Invocation to Cloud Run HttpRequest
We have a cloud function (v1 for organization restraints) that is triggered from a cloud storage event. It makes a request to a service running in Cloud Run. We have enabled tracing and structured ...
1
vote
1
answer
753
views
Spring Boot 3.3+ and Open Telemetry export to Google Cloud Trace?
I'm trying to get Open Telemetry to export traces from my Spring Boot 3.3.5 application running on GKE.
I've tried follow the guide here which says to use:
<dependencyManagement>
<...
0
votes
1
answer
109
views
Datastore grpc are not being traced in Cloud Run
I have an instrumentation for tracing my Python backend that uses NDB to interact with Datastore, I follow the classic way for exporting traces to Cloud Trace:
from opentelemetry.sdk.trace import ...
2
votes
1
answer
283
views
Filter spans before sending them to GCP Cloud Trace SDK
I'm using a GKE cluster at GCP running HTTP server instances implemented in Golang.
To take advantage of Google's tracing tools via their Cloud Trace implementation.
The implementation rigorously ...
4
votes
1
answer
1k
views
No Traces reported by GCP Load Balancer to Google Cloud Trace
I'm running several applications on GKE with a Spring Cloud Gateway in front of them and behind a Google Cloud Loadbalancer.
While debuging i noticed that most traces reported to Google Cloud Trace ...
1
vote
1
answer
1k
views
How get the traceparent in OpenTelemetry?
This is the abstraction that I've written:
import { context, defaultTextMapSetter } from '@opentelemetry/api';
import { W3CTraceContextPropagator } from '@opentelemetry/core';
type ...
4
votes
1
answer
4k
views
GCP Cloud Run: how to monitor latency per path/URI?
I have REST API running on GCP Cloud Run. I would like to monitor latency / response time, grouped per path (URI), so that I can spot paths that have bad response times.
For instance, let say I have 3 ...
1
vote
0
answers
593
views
Extract trace context from x-cloud-trace-context request header
I am working on implementing opentelemetry tracing for a multi-microservice application deployed in Google Cloud's App Engine. App Engine provides tracing by default, and includes a context in the ...
1
vote
0
answers
312
views
How to use Google Cloud Trace to do distributed tracing for a message-driven system?
I am new to GCT. For most examples I found online, the start and end of a span are on the same machine (or even the same function like defer span.Close()). E.g.
try (Scope ss = tracer.spanBuilder(&...
2
votes
0
answers
967
views
Can I instrument Firebase Functions V1 with OpenTelemetry to analyse traces in Cloud Trace? If yes how?
I have many v1 cloud functions. Written in typescript and running on NodeJS 18. Deployed with "firebase deploy functions". Completely server-less.
If I open Cloud Trace ( https://console....
1
vote
0
answers
235
views
Google cloud trace agent does not appear to work in my typescript project
I'm using google cloud trace inside GKE. Everything appears to work fine if I import the library as an argument when running node in the docker image, however if I import the client library in my code ...
5
votes
0
answers
2k
views
Filtering out specific http api calls from open telemetry java agent instrumentation
I'm using the open telemetry java agent as documented here to instrument a Java Spring Boot application and export the traces to Google Cloud Trace.
My command is :
java \
-javaagent:/opentelemetry/...
0
votes
1
answer
1k
views
Google Cloud Tracing in a .net 6 (or at least .net core 3+) Console App
I've been trying to implement Cloud Trace in a .net 6 Console App that works as a listener for events coming through a Publisher Subscriber pattern.
I have been following Googles docs for their ...
3
votes
0
answers
3k
views
Google Cloud : X-Cloud-Trace-Context different from app log traceId
I have a spring boot app that's deployed in google cloud and I face a rather odd problem.
The X-Cloud-Trace-Context is set by google (load balancer I suppose) but the traceId of the app level logs ...
3
votes
2
answers
4k
views
Open-Telemetry spans not showing up in GCP Cloud Trace
I am instrumenting a node.js service in Google Cloud Platform's Cloud Run.
I'm running into a problem where custom spans are not showing up in Trace.
I know that tracing is working because HTTP/TCP ...
4
votes
1
answer
2k
views
Making GCP Load-balancer HTTP logs integrate with Cloud Trace (in GCP Logs Explorer)?
Cloud Trace and Cloud Logging integrate quite nicely in most cases, described in https://cloud.google.com/trace/docs/trace-log-integration
Unfortunately, this doesn't seem to include the HTTP request ...
0
votes
1
answer
252
views
How to add a label to traces created by the AddOutgoingGoogleTraceHandler extension method?
I am using Google.Cloud.Diagnostics.AspNetCore v4.3.0.
I use AddOutgoingGoogleTraceHandler to trace every outgoing HTTP request of a given HTTP client and I want to add a custom label to every trace ...
1
vote
1
answer
181
views
Datastore calls in Trace Golang
when I was using go111, I had traces of all my Datastore calls (similar to image below). But as soon as I upgraded to go115 and started using cloud.google.com/go/datastore, I lost this information ...
2
votes
1
answer
3k
views
How can I export traces generated by the OpenTelemetry Java agent to Google Cloud Trace?
I've got a Spring Boot application that'd I'd like to automatically generate traces for using the OpenTelemetry Java agent, and subsequently upload those traces to Google Cloud Trace.
I've added the ...
2
votes
1
answer
3k
views
Google Cloud Trace Opentelemetry Java example code not showing up on Google Cloud Trace Dashboard
I followed the steps on Google Cloud's Java and OpenTelemetry site (https://cloud.google.com/trace/docs/setup/java-ot) and made a simple hello world Java application locally and am trying to get my ...
2
votes
0
answers
138
views
Trace context (distributed tracing) for Firestore Trigger functions
Is it possible to attach a trace context to firestore triggers so that its easy to figure out the application flow?
Currently we are triggering some pubsub events on data change in firestore triggers.
...
5
votes
3
answers
11k
views
OpenTelemetry Python - How to instanciate a new span as a child span for a given trace_id
My goal is to perform tracing of the whole process of my application through several component. I am using GCP and Pub/Sub message queue to communicate information between components (developped in ...
1
vote
1
answer
2k
views
Traces not propagating to GCP Cloud Trace from spring boot application
I have a spring boot microservice which consumes and publishes messages from/to PubSub and is deployed on GKE. I am using spring stream binder for pubsub integration and Cloud Sleuth for generating ...
7
votes
2
answers
946
views
How to choose an Opentelemetry backend vendor?
With Opentelemetry becoming the new standard of tracing, and it being vendor-agnostic, how do we then choose a backend vendor for opentelemetry?
For example, there are currently many vendors that ...
3
votes
1
answer
1k
views
How to create an OpenTelemetry span from ctx in gRPC server stub
My Go gRPC server is instrumented with
Google Tracing span exporter:
import texporter "github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace"
...
gcp, err := texporter....
9
votes
2
answers
4k
views
How can I manually specify a X-Cloud-Trace-Context header value to and correlate and trace logs in separate Cloud Run requests?
I'm using Cloud Run and Cloud Tasks to do some async processing of webhooks. When I get a request to my Cloud Run service, I queue up a task in my Cloud Tasks queue and return a response from my ...
-1
votes
2
answers
1k
views
How to use Cloud Trace with Nodejs on GKE with workload identity enabled?
I'm trying to set up Cloud Trace on a GKE cluster with workload identity enabled. My pod uses a service account, which has the Cloud Trace Agent role. (I also tried giving it the Owner role, to rule ...
5
votes
2
answers
4k
views
Trace Propagation on Google Cloud Run with OpenTelemetry
I have a Flask app talking to a Python gRPC service, both deployed on Google Cloud Run. I can see traces on Google Trace after instrumenting the apps, but they all appear to have different Trace IDs ...
2
votes
0
answers
539
views
How can I trace gcp pubsub like tracing an HTTP request?
I have multiple apps written in nodejs.
I am trying to monitor the apps using google-trace. I am able to get traces successfully for the HTTP requests. But I have some apps which are pulling events ...
0
votes
1
answer
673
views
Filtering information in Google Cloud Traces from different gke clusters in same GCP project
I have one GCP project in which there are two GKE clusters, one for development and preproduction workloads and another one for production.
I am using Google Cloud Trace to correlate the information ...
1
vote
1
answer
2k
views
Google Cloud Trace doesn't correlate logs from Spring Boot applications using Sleuth
I've recently upgraded my applications to Spring Boot 2.4.2, Cloud 2020.0.0, changing Spring Cloud GCP dependencies following the migration guide: https://googlecloudplatform.github.io/spring-cloud-...
1
vote
1
answer
1k
views
Google cloud trace + Gcloud logging in logs viewer
I've stuck with problem with google cloud logging and google cloud trace using google cloud kubernetes
I've the application which consumes gcloud pubsub topic and I want to unify logs in trace of ...
0
votes
1
answer
268
views
Adding detailed request information in Google Cloud Trace
I'm building a Spring Boot application that's deployed on Google App Engine. To find out the cause of some weird latency issues, I figured I'd enable Google Cloud Trace to view detailed latency ...
1
vote
0
answers
447
views
Is there something limitation for Cloud Trace on Cloud Run?
I'm building microservices on Cloud Run with Java.
So, I want to use CloudTrace for these services. But it doesn't work as I expected. A DeadlineExceededException is raised.
I can run same services on ...
0
votes
1
answer
718
views
Initial Traces created by Spring-Cloud-Gateway are all named "/", no matter the path
I've integrated sleuth into my application gateway and the services behind it. The traces in Stackdriver (GKE) look good but the root-span is always named "/". For example:
The second span is also ...
2
votes
2
answers
289
views
Stackdriver Strace embedded traces for one request with python
I am using Stackdriver Trace to monitor the delays of some microservices, but am having some issues in making all the round trip to be shown as one request.
Say I have two services (to keep it simple)...
0
votes
1
answer
76
views
Finding untraced time in Google Cloud Tracer Agent for Express.js
I'm using Google Cloud's Stackdriver Trace Agent with the Express.js plugin.
I noticed there are a few routes which have substantial "untraced" time. What strategies can I use to find and begin to ...
0
votes
1
answer
203
views
How to get number of calls for a trace
I've added traces to measure execution of some code running on GCP. The traces appear in trace list on StackDriver page and I can see their duration. What I cannot find is number of times reach traces ...
5
votes
1
answer
965
views
How to tracing a request through a chain of microservices end-to-end?
I am using OpenCensus in Go to push tracing data to Stackdriver for calls involving a chain of 2 or more micro services and I noticed that I get many traces which contain spans only for certain ...
2
votes
2
answers
1k
views
C# Stackdriver Trace credentials from file
I working with Google cloud Stackdriver Trace API with C# (dotnet core) and working according to this article.
I already added all the needed code and want to try it locally (on my development ...
3
votes
1
answer
1k
views
How to use Stackdriver Trace to create custom spans in App Engine Standard?
I try to add custom spans and annotations to an AppEngine Standard application. In the Traces page of the GCP console, I see the default spans but not the custom spans that I have added.
I follow the ...
0
votes
1
answer
203
views
Installing and using version 1 of google cloud trace api client for python
I'm trying to write a script to extract Stackdriver Trace information to load into big query and I'm having trouble installing the python client library. I need version 1 of the library to access the ...
0
votes
0
answers
514
views
Trace agent do not pick up on pubsub subscription messages
We are trying to set up trace across a number of node.js microservices.
node v10.14.2
google-cloud/pubsub v0.19.1
google-cloud/trace-agent v3.5.0
Services got http endpoint and pubsub integrtion.
All ...
0
votes
0
answers
108
views
What is the maximum span.status.message size allowed?
While experimenting with the v2 batchWrite API i was able to write status messages as long as 5KB. Does google enforce a maximum?
Everything other trace field seems to be very tightly restricted to ...
1
vote
1
answer
796
views
Google Cloud trace Custom trace only works a few times
I have activated Google Cloud Tracer with nodejs & express, works well in automatic mode, registers calls to the api correctly.
I try to create a trace manually, to know the execution time of ...
0
votes
1
answer
457
views
How to get google trace to visually indicate spans with errors
Some spans reported to google trace represent method calls that ended in an error.
Is there a way to get google trace to visually set these spans apart from success spans (a different color, an error ...
0
votes
0
answers
114
views
viewing stackTrace in the UI?
When i try to add a stackTrace to my spans, i get the following results:
Adding stackTrace to a parent span results in an empty "Callstack" section in the UI (parent stackTrace)
Adding stackTrace to a ...
0
votes
1
answer
102
views
creating different color spans using REST api
I've seen some trace screenshots where different spans have different colors (https://rakyll.org/grpc-trace/).
I've tried tracing my code using the v2 rest api, and all of the resulting spans are in ...
2
votes
1
answer
3k
views
"Invalid parent id!" when sending trace
I have an app running on google app engine standard, python 2.7.
GAE already trace calls to the Datastore and to Memcache and I want to add my own traces.
Since I'm in python 2 google-cloud-python is ...