graphql-otel

Trace your GraphQL API with OpenTelemetry.

Downloads
70
Stars
13
Committers
1
graphql-otel - 0.1.1

Published by danstarns about 1 year ago

graphql-otel - 0.1.0 Latest Release

Published by danstarns about 1 year ago

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:

https://github.com/open-telemetry/opentelemetry-specification/pull/3668

graphql-otel - 0.0.10

Published by danstarns about 1 year ago

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
  }),
};
graphql-otel - 0.0.9

Published by danstarns over 1 year ago

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
  }),
};
graphql-otel - 0.0.8

Published by danstarns over 1 year ago

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

  • e537b3b6696d7ddf8f0fe65c8932e242af4b17d2
  • 0d9d08bdb28e7e182a6dbc20f447c2b503ece2d4
  • 0d9d08bdb28e7e182a6dbc20f447c2b503ece2d4
graphql-otel - 0.0.7

Published by danstarns over 1 year ago

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:

graphql-otel - 0.0.6

Published by danstarns over 1 year ago

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.

Package Rankings
Top 10.46% on Npmjs.org
Related Projects