Initial default implementation of the tracing service + docs

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2026-04-28 17:23:56 +02:00
parent 90b572e4a3
commit 130db0d6c6
12 changed files with 869 additions and 0 deletions
+46
View File
@@ -1186,6 +1186,52 @@ export interface Config {
};
};
/**
* Tracing-related backend configuration. Honored by Backstage backend
* plugins that emit OpenTelemetry trace spans.
*/
tracing?: {
/**
* Opt-in capture of attributes that may identify users or contain
* sensitive data on backend trace spans.
*/
capture?: {
/**
* When true, backend plugins emitting trace spans for authenticated
* requests SHOULD include the authenticated principal's identity as
* `enduser.id` (the user entity ref for a user principal, or the
* service subject for a service principal). Defaults to false.
*/
endUser?: boolean;
};
/**
* Plugin-specific tracing configuration. Each plugin can override
* tracer instrumentation scope metadata.
*/
plugin?: {
[pluginId: string]: {
/**
* Tracer configuration for this plugin.
*/
tracer?: {
/**
* Custom tracer name. If not set, defaults to
* backstage-plugin-{pluginId}.
*/
name?: string;
/**
* Version for the tracer.
*/
version?: string;
/**
* Schema URL for the tracer.
*/
schemaUrl?: string;
};
};
};
};
/**
* Options to configure the default RootLoggerService.
*/