Releases: rocket-connect/graphql-otel
0.1.1
0.1.0
This release increases open telemetry spec support by updating the span and attribute names to follow the suit of the specification:
https://opentelemetry.io/docs/specs/otel/trace/semantic_conventions/instrumentation/graphql/
graphql-otel offers the ability to record the args, result, and context and so we added some additions to the specification to support those needs:
0.0.10
Bumps the open telemetry packages to the latest versions.
Adds the ability to include the resolver result in the span attributes:
const context = {
GraphQLOTELContext: new GraphQLOTELContext({
includeResult: true, // If true will add the result in the span attributes
}),
};
0.0.9
This adds the ability to exclude keys from the span context attribute.
const context = {
GraphQLOTELContext: new GraphQLOTELContext({
includeContext: true,
includeVariables: true,
excludeKeysFromContext: ["database", 'headers', "token"], <--- large objects, sensitive information
}),
};
0.0.8
This release adds the ability to append the GraphQL context and variables onto the trace attributes.
You can do this by setting either or both options:
new GraphQLOTELContext({
includeContext: true,
includeVariables: true,
});
You will then see the JSON string of variables
and context
in your trace attributes.
Commits