{"repo":"ravilushqa/otelgqlgen","free":true,"listed":false,"github":"https://github.com/ravilushqa/otelgqlgen","clone":"git clone https://github.com/ravilushqa/otelgqlgen.git","description":"OpenTelemetry instrumentation for 99designs/gqlgen","language":"Go","stars":80,"topics":["golang","gqlgen","graphql","instrumentation","opentelemetry","hacktoberfest"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"OpenTelemetry-Go gqlgen Instrumentation It is an OpenTelemetry instrumentation for Golang 99designs/gqlgen, a port from https://github.com/open-telemetry/opentelemetry-go-contrib/pull/761. It can only instrument traces for the present. Installation To install the otelgqlgen package, use the following command: Usage Below is a basic example of how to use otelgqlgen: Configuration Options otelgqlgen provides several options to customize the tracing behavior: - WithTracerProvider(provider) : Specifies a custom tracer provider. By default, the global OpenTelemetry tracer provider is used. - WithComplexityExtensionName(name) : Specifies a name for the complexity extension. By default, a name is automatically generated. - WithRequestVariablesAttributesBuilder(builder) : Specifies a custom function to build the attributes for the request variables. - WithoutVariables() : Disables the variables attributes. - WithCreateSpanFromFields(predicate) : Specifies a custom function to control whether a span should be created based on the GraphQL context fields. - WithInterceptResponseResultHandlerFunc(handler) : Specifies a custom function to intercept and handle GraphQL response results before they are returned. - WithInterceptFieldsResultHandlerFunc(handler) : Specifies a custom function to intercept and handle GraphQL field-level results and errors during execution. Example See ./example. Compatibility This project is tested on the following systems. OS Go Version Architecture ------- ----","default_branch":null,"files":null,"tree":[],"storefront":"/r/ravilushqa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ravilushqa/otelgqlgen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}