question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make google-cloud-logging work with cloud-trace-java

See original GitHub issue

I want both stackdriver tracing and logging in my project and seems like there is no way to make both of them work on the same project.

https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-logging https://github.com/GoogleCloudPlatform/cloud-trace-java

The issue is the library conflict for com.google.api:gax-grpc (and possibly others):

The latest com.google.cloud:google-cloud-logging:1.14.0 depends on om.google.api:gax-grpc:1.15.0 but the latest com.google.cloud.trace:trace-grpc-api-service:0.5.0 depends on com.google.cloud.trace.v1:grpc-consumer:0.5.0 -> com.google.cloud:google-cloud-trace:0.24.0-alpha -> com.google.cloud:google-cloud-core-grpc:1.6.0 -> com.google.api:gax-grpc:0.25.1.

So the logging depends on gax-grpc:1.15.0 but the tracing depends on gax-grpc:0.25.1 and they are not backward compatible (some classes are removed/renamed).

Is there any way to have a set of versions for these two libraries to work together?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danialfaridsadacommented, Dec 20, 2017

Also these two projects should be more coordinated and probably be part of the same repo since people would usually use both features of stackdriver in their products.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrating with Cloud Logging - Trace
From the Trace details pane, to view the log entry for the trace, do one of the following: To display the trace log...
Read more >
Java Logging on Cloud Run with Stackdriver - Medium
This blog post will cover Java logging on Cloud Run, though these concepts can be applied to the Google App Engine (GAE).
Read more >
Logging - Spring Boot on GCP
Centralized Logging · Search the logs · Create metrics from logs based on criteria, to see in Cloud Monitoring, or create alerts ·...
Read more >
OpenTelemetry Tracing with Google Cloud ... - Micronaut Guides
Use Google Cloud Trace to investigate the behavior of your Micronaut applications ... In this guide, we will create a Micronaut application written...
Read more >
Distributed tracing with Spring Cloud Sleuth and Cloud Trace
Google Cloud Platform has Cloud Trace, which is a managed service that allows you to store trace data without having to manage your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found