Meshpocalypse Semantic
    Preparing search index...

    Function setMeshAttributes

    • Set mesh.* attributes on any span-like object in a single call.

      Iterates over the provided attrs object and calls setAttribute for each key that is defined (not undefined). Keys mapped to undefined are silently skipped — this avoids setting literal "undefined" strings as attribute values.

      Works with both the lightweight SpanContext tracer and the full OTel Span type from @opentelemetry/api.

      Parameters

      Returns void

      setMeshAttributes(span, {
      agentId: 'did:mesh:agent-1',
      jobId: '550e8400-e29b-41d4-a716-446655440000',
      jobState: 'running',
      });