Skip to content

feat(bottlecap): set error to invocation span#444

Merged
duncanista merged 6 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
jordan.gonzalez/bottlecap/invocation-span-error-message
Nov 12, 2024
Merged

feat(bottlecap): set error to invocation span#444
duncanista merged 6 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
jordan.gonzalez/bottlecap/invocation-span-error-message

Conversation

@duncanista
Copy link
Copy Markdown
Contributor

@duncanista duncanista commented Nov 11, 2024

What?

Uses the error data sent by traces to attach it to the invocation span.
Screenshot 2024-11-11 at 3 52 28 PM

Screenshot 2024-11-11 at 3 53 51 PM

How

Using the headers data sent by the tracers on end invocation, also sends a metric.

Notes

  • We might need to go back to this code to see how it behaves for Timeouts
  • Metrics look off in the screenshot, but rest assured they're good, it's (1+4) invocations and (5) errors

checks the headers to identify errors that should be attatched to the invocation span and the inferred span
@duncanista duncanista changed the base branch from main to jordan.gonzalez/bottlecap/universal-instrumentation November 11, 2024 18:23
@duncanista duncanista marked this pull request as ready for review November 11, 2024 20:54
@duncanista duncanista requested a review from a team as a code owner November 11, 2024 20:54
@duncanista duncanista merged commit ef864f9 into jordan.gonzalez/bottlecap/universal-instrumentation Nov 12, 2024
@duncanista duncanista deleted the jordan.gonzalez/bottlecap/invocation-span-error-message branch November 12, 2024 15:45
duncanista added a commit that referenced this pull request Nov 15, 2024
* move `base64_to_string` to `lifecycle::invocation` module

* set error on span from headers

checks the headers to identify errors that should be attatched to the invocation span and the inferred span

* increment metrics on error

* fmt

* remove a todo
duncanista added a commit that referenced this pull request Nov 19, 2024
* move `base64_to_string` to `lifecycle::invocation` module

* set error on span from headers

checks the headers to identify errors that should be attatched to the invocation span and the inferred span

* increment metrics on error

* fmt

* remove a todo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants