Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a level value to instrumented spans #8854

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

etorreborre
Copy link
Member

@etorreborre etorreborre commented Mar 11, 2025

This PR:

  • Sets most of the instrumented spans with the level TRACE. The idea is to leave those spans for a low-level analysis of where time is spent, and reintroduce them at the INFO level only once we know that they are useful for high-level observability in a project UI.

  • Adds an attribute to distinguish host user journeys (all commands from a given node) from project user journey (all commands for a given project).

  • Reworks the spans emitted when a message is sent via a portal:

    • inlet -> outlet: receive_tcp_message_at_inlet, then receive_ockam_message_from_inlet.
    • outlet -> inlet: receive_tcp_message_at_outlet, then receive_ockam_message_from_outlet
  • Additionally, node information (node name + node identifier) and project id have been added to all the spans when the information is available:

    • This is why there is a commit with a large number of changes; the CliState had to be shared with the SpanExporter to collect that information (if available) when spans are being exported.

@etorreborre etorreborre self-assigned this Mar 11, 2025
@etorreborre etorreborre force-pushed the etorreborre/feat/telemetry-traces branch 3 times, most recently from 74676b9 to c096702 Compare March 13, 2025 10:49
@etorreborre etorreborre force-pushed the etorreborre/feat/telemetry-traces branch 3 times, most recently from be601fb to 69a388a Compare March 20, 2025 14:44
rather than getting from the database all the time
@etorreborre etorreborre force-pushed the etorreborre/feat/telemetry-traces branch from 69a388a to d574e9d Compare March 20, 2025 14:48
@etorreborre etorreborre marked this pull request as ready for review March 20, 2025 14:59
@etorreborre etorreborre requested a review from a team as a code owner March 20, 2025 14:59
@etorreborre etorreborre enabled auto-merge March 20, 2025 15:07
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.

1 participant