Skip to content

Commit

Permalink
Use std function instead of put_if
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad authored and cpiemontese committed Apr 17, 2024
1 parent 8ee67b4 commit 6aeda61
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 @@ -115,7 +115,7 @@ defmodule OpentelemetryAbsinthe.Instrumentation do
{:"graphql.request.variables", Jason.encode!(variables)}
)
|> put_if(config.trace_request_query, {@graphql_document, document})
|> put_if(true, {:"graphql.event.type", config.type})
|> List.insert_at(0, {:"graphql.event.type", config.type})

save_parent_ctx()

Expand Down

0 comments on commit 6aeda61

Please sign in to comment.