Comments (6)
Some context here: openzipkin/zipkin-gcp#102
Maybe there is an issue with credentials. Are you able to upgrade to Spring Cloud GCP 2.x to try the latest version?
from spring-cloud-gcp.
Thanks @meltsufin , I added roles/cloudtrace.agent to service account, which resolved timeout error.
But traces are still not sent to Cloud trace.
Traces are being sent to stackdriver logging -
Some additional details - the microservice is a pubsub subscriber and we are using spring cloud stream binder for consuming and publishing messages to topics. It is deployed on GKE and uses istio proxy.
from spring-cloud-gcp.
As per documentation,
Spring Cloud Sleuth integrates with Spring Integration. It creates spans for publish and subscribe events.
Basically, I want to capture traces and spans for these events. Will spring-cloud-gcp-starter-trace dependency suffice or I need any additional dependencies to make it work with PubSub calls? I could not find any example for tracing pubsub events.
from spring-cloud-gcp.
Pub/Sub is not fully supported with Sleuth yet. You can get some tracing if you're using Spring Integration with Pub/Sub, but not the Pub/Sub Template. There is an issue for adding the support: openzipkin/zipkin-gcp#190.
from spring-cloud-gcp.
So PubSub events will not able be propagated to Cloud Trace automatically. Can you please help me with below queries:
Should it work with custom spans if I include grpc dependencies
Spring Cloud Sleuth provides instrumentation for gRPC through TraceGrpcAutoConfiguration
Can you please suggest a way of sending traces to stackdriver trace when using cloud stream binder? I am using Cloud sleuth for distributed tracing and it works fine with stackdriver logging i.e for each request new traceid is generated and same is propagated to next microservice. I am not sure if I can use alternatives like openTelemetry along with sleuth for exporting traces to stackdriver trace.
from spring-cloud-gcp.
Stream binder uses Spring Integration under the hood. So, it might work. Can you give it a try and let us know?
Regarding TraceGrpcAutoConfiguration
, I believe it's only relevant to when you're creating your own gRPC service.
from spring-cloud-gcp.
Related Issues (20)
- Spanner Lazy Loading seems not to be working HOT 1
- SpannerOperations.executeDmlStatement doesn't run Partitioned-DML when it's not performed in transaction. HOT 4
- java.net.MalformedURLException: unknown protocol: gs HOT 7
- PubSubBinderConfiguration is not disabled when PubSub is disabled HOT 1
- Unknown Function Lower or LOWER HOT 2
- Could not find an appender named [STACKDRIVER] HOT 2
- spring-cloud-gcp-starter-sql-postgresql - Connection issue HOT 1
- datastore: BeforeDeleteEvent is not fired if deletion was performed inside of performTransaction method HOT 1
- Is there an equivalent of resilience4j for node.js HOT 1
- Backport SpannerOptions customizer HOT 2
- Could not autowire. No beans of 'PubSubPersonGateway' type found issue in Pub Sub Sample project HOT 4
- Huge amount of ScheduledFutureTask in memory in case pubsub.googleapis.com isn't available HOT 7
- Spring Boot the property spring.jpa.show-sql doesn't work with Datastore HOT 1
- Health Indicator for Cloud Spanner HOT 2
- pubSubHeathContributor timeout exception on start up. HOT 1
- Google Cloud Storage encoded-key problem HOT 3
- X-B3-TraceId different from x-cloud-trace-context HOT 2
- spring-cloud-gcp-starter-pubsub fail on enforcer plugin HOT 1
- springcloud-gcp-starter-pubsub can's sbscribe topic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-gcp.