Skip to content

Releases: rocket-connect/graphql-otel

0.1.1

27 Aug 19:21
Compare
Choose a tag to compare

Version 0.1.1

Fixes:

  1. Subspan attributes 012af0d

Additions:

  1. Add GraphQL schema hash to span attributes f76d391

0.1.0

18 Aug 20:46
6c0da91
Compare
Choose a tag to compare

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:

open-telemetry/opentelemetry-specification#3668

0.0.10

31 Jul 04:47
Compare
Choose a tag to compare

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

16 Mar 22:41
Compare
Choose a tag to compare

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

16 Mar 21:45
Compare
Choose a tag to compare

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

0.0.7

15 Mar 20:13
Compare
Choose a tag to compare

Version 0.0.6 of graphql-otel, span events were introduced to propagate errors. However, at that time, the span status was not being set to error. Now, with the latest changes, you can filter queries that have resulted in errors using the status filter for GraphQL.

Commits:

0.0.6

15 Mar 19:03
Compare
Choose a tag to compare

This release propagates the errors that happen in the GraphQL resolver and appends them as an event on the trace.

This will better help users debug their GraphQL API.