Skip to content
Discussion options

You must be logged in to vote

Hi @adamk9k

The span naming scheme for HTTP requests is defined by the OTEL spec.

Faro provides an option to inject config options into the underlying otel fetch instrumentation.
Here you can use the applyCustomAttributesOnSpan function to update the span name.

itializeFaro({
    // ...
    instrumentations: [
      // ...

      new TracingInstrumentation({
        instrumentationOptions: {
          fetchInstrumentationOptions: {
            applyCustomAttributesOnSpan: (span) => {
              span.updateName('NEW_SPAN_NAME');
            },
          },
        },
      }),
      // ...
    ],
  });

Cheers,
Marco

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adamk9k
Comment options

Answer selected by adamk9k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants