Unverified Commit 3c7c9d06 authored by Hong Minhee's avatar Hong Minhee
Browse files

OpenTelemetry span events and missing instrumentation

Enhanced OpenTelemetry observability by adding span events to capture
rich activity data and instrumenting previously uncovered operations.

Span events added:

- activitypub.activity.received: Records full activity JSON and
  verification status (activity, HTTP signatures, LD signatures)
  in the activitypub.inbox span
- activitypub.activity.sent: Records activity JSON and target inbox
  in the activitypub.send_activity span
- activitypub.object.fetched: Records object type and JSON-LD in
  the activitypub.lookup_object span

New spans added:

- docloader.fetch: Tracks document loading, HTTP redirects, and
  final document URLs
- activitypub.verify_key_ownership: Tracks key ownership verification
  with actor ID, key ID, result, and verification method

Also added comprehensive test coverage using a new TestSpanExporter
helper to verify all instrumentation is properly recorded.

Resolves https://github.com/fedify-dev/fedify/issues/323



Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent 4cc6d2c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment