MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / with_trigger

Method with_trigger

lambda-runtime/src/layers/otel.rs:29–34  ·  view source on GitHub ↗

Configure the `faas.trigger` attribute of the OpenTelemetry span.

(self, trigger: OpenTelemetryFaasTrigger)

Source from the content-addressed store, hash-verified

27
28 /// Configure the `faas.trigger` attribute of the OpenTelemetry span.
29 pub fn with_trigger(self, trigger: OpenTelemetryFaasTrigger) -> Self {
30 Self {
31 otel_attribute_trigger: trigger,
32 ..self
33 }
34 }
35}
36
37impl<S, F> Layer<S> for OpenTelemetryLayer<F>

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected