Skip to content

Commit

Permalink
Fix handler error in case graphql operation result has no errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LeartS committed Jul 8, 2020
1 parent 434302e commit b7eb592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instrumentation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ defmodule OpentelemetryAbsinthe.Instrumentation do
)
|> put_if(
config.trace_response_errors,
{"graphql.response.errors", Jason.encode!(data.blueprint.result.errors)}
{"graphql.response.errors", Jason.encode!(data.blueprint.result[:errors])}
)

OpenTelemetry.Span.set_attributes(result_attributes)
Expand Down

0 comments on commit b7eb592

Please sign in to comment.