Skip to content

Local context is overwritten by Observation instrumentation #760

Closed as not planned
@koenpunt

Description

@koenpunt

We haven't been able to update to a newer version than 1.1.3 because unfortunately every time new bugs are introduced.

The last thing that was broken was #742, now that's fixed and out with the 3.1.2 boot-starter. However, now apparently using local context no longer works.

We have the following in multiple places in our application:

DataFetcherResult.newResult<T>()
        .data(data)
        .localContext(GraphQLContext.of(contextMap))
        .build()

But now all that is found in the local context in child resolver functions is the micrometer.observation key.

I understand it's not intentional, but it is quite annoying that fixes are released with other changes that cause new issues.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions