Questions tagged [google-cloud-trace]

Google Cloud Trace is a feature of the Google Cloud Platform that allows you to view the RPCs (remote procedure calls) invoked by your App Engine application and to view and analyze the time taken to complete each RPC.

Google Cloud Trace is a feature of the Google Cloud Platform that allows you to view the RPCs (remote procedure calls) invoked by your App Engine application and to view and analyze the time taken to complete each RPC.

An App Engine RPC is a round trip network call between your application and an App Engine service. For example, each of these calls made by a Python application result in RPCs:

  • Datastore calls such as db.get(), db.put(), or db.query().
  • Memcache calls such as memcache.get(), or memcache.get_multi().
  • URL Fetch calls such as urlfetch.fetch().

See documentation for more information.

68 questions
2
votes
1 answer

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 logs generated by a Load Balancer when request…
2
votes
1 answer

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 following code to the entry point of my…
homerman
  • 3,369
  • 1
  • 16
  • 32
2
votes
1 answer

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 traces to show up on Google Cloud Trace using their…
Jayleen
  • 174
  • 1
  • 12
2
votes
0 answers

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. Wondering if there is a way to pass a context so…
Ayyappa
  • 1,876
  • 1
  • 21
  • 41
2
votes
2 answers

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). In order to get the traces from both of them, I…
suren
  • 7,817
  • 1
  • 30
  • 51
2
votes
2 answers

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 machine). Since I'm not running from the GCP cloud, I…
No1Lives4Ever
  • 6,430
  • 19
  • 77
  • 140
2
votes
1 answer

"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 not available for my app. I made something to…
2
votes
1 answer

OpenCensus Not Showing Traces On Google App Engine in Stack Driver

I am using OpenCensus as recommended by Google Cloud to run StackDriver Trace (https://cloud.google.com/trace/docs/setup/java). My configuration is running on Google App Engine Standard Java 8. I have ensure the API is enabled on the project, used…
2
votes
1 answer

What are the actual API limits?

On the Stackdriver Trace documentation (https://cloud.google.com/trace/docs/quotas) I see there are Quota unit cost per API call, but that doesn't really tell me what the true API limits are. For something like BatchWriteSpans the unit cost is 1,…
2
votes
1 answer

Appending a new trace fails

I'm attempting to use the patchTraces method to submit tracing information to Google CloudTrace. The patch request I'm making returns a opaque error message. Any idea what I'm doing wrong? Go code package main import ( "io/ioutil" "log" …
Kyle Conroy
  • 136
  • 1
  • 5
1
vote
1 answer

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 SqlCommentComponents = { traceparent?: string; }; const…
Gajus
  • 69,002
  • 70
  • 275
  • 438
1
vote
0 answers

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 header (` x-cloud-trace-context `) with each…
1
vote
0 answers

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("ChildSpan").startScopedSpan()) { ... } Meanwhile…
1
vote
0 answers

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 itself, I see no traces generated As per the…
1
vote
0 answers

Google Cloud Trace - See service names on spans - trace view - open telemetry

question on Google Cloud trace - Trace details view. I'm seeing all my spans of the trace. Also I added a resource on the open telemetry instrumentation service.name and service.version. Now, I can see these as labels for each span. What I want is…