Skip to content

Instrument the faucet #811

@Mirko-von-Leipzig

Description

@Mirko-von-Leipzig

The faucet currently emits events/logs but no open-telemetry spans.

  • Add an enable-otel cli arg in the same fashion as the node.
  • Instrument the various endpoints.

I would advise reading the node documentation chapter on open-telemetry.

Especially the tokens endpoint should be split into logical spans for the duration of the request so that one can make sense of which parts are slow.

This includes spans for locking any shared state etc.

For inspiration, take a look at the block and batch building in the block-producer. As a general rule, prefer spans over events.

Metadata

Metadata

Assignees

Labels

telemetryRelates to tracing and open-telemetry

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions