Coder Social home page Coder Social logo

When upgrading to Spring Boot 3.1.0 we get in the response the tracing information under extensions about graphql-spring-boot HOT 2 OPEN

jimartinmoreno avatar jimartinmoreno commented on August 16, 2024
When upgrading to Spring Boot 3.1.0 we get in the response the tracing information under extensions

from graphql-spring-boot.

Comments (2)

andykruth-ii avatar andykruth-ii commented on August 16, 2024

Could we get some traction on this? I am also facing the same issue. Luckily, its already fixed!

You should be able to disable the extensions.tracing in the output by setting this in your application.yaml:

graphql:
  servlet:
    tracing-enabled: "false"

This is actually the default value already as you can see here, so it should be disabled by default.

The MetricsInstrumentation is supposed to remove the tracing from the extensions when this is set to false here.

BUT, the last deployed version of MetricsInstrumentation is still using the now deprecated 2 parameter override for instrumentExecutionResult. This was fixed in commit 4c5a3e0 but this has not been released yet.

So, all we need is a new release, which we seem well overdue for.

I have been attempting to pull back graphql-java to version 18.7 (before the method deprecation), but it looks like it is also going to require a version change to graphql-java-tools which I have not found a good version to use yet.

from graphql-spring-boot.

andykruth-ii avatar andykruth-ii commented on August 16, 2024

For anyone stuck on this issue, if a release higher than 15.0.0 has been released, then you can use that.

Otherwise, this workaround worked for me. I am excluding all auto configured TracingInstrumentation and providing my own Beans, including a shim that uses the new ChainedInstrumentation methods. This is not bullet proof, a formal release would be much better.

from graphql-spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.