Skip to content

Commit

Permalink
chore: adding typespecs
Browse files Browse the repository at this point in the history
  • Loading branch information
BrokenSt0rm committed Feb 16, 2024
1 parent 0289237 commit 54dde91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/instrumentation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ defmodule OpentelemetryAbsinthe.Instrumentation do
operation_name: String.t() | nil,
operation_type: :query | :mutation,
schema: Absinthe.Schema.t(),
errors: [graphql_handled_event_error()] | nil,
status: :ok | :error
}

@type graphql_handled_event_error :: %{
locations: [%{column: integer(), line: integer()}],
message: String.t(),
path: [String.t()]
}

@type graphql_handled_event_measurements :: %{
duration: :int
}
Expand Down

0 comments on commit 54dde91

Please sign in to comment.