File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lambda-runtime/src/layers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use crate::LambdaInvocation;
44use opentelemetry_semantic_conventions:: trace as traceconv;
55use pin_project:: pin_project;
66use tower:: { Layer , Service } ;
7- use tracing:: { instrument:: Instrumented , Instrument } ;
7+ use tracing:: { instrument:: Instrumented , Instrument , field } ;
88
99/// Tower layer to add OpenTelemetry tracing to a Lambda function invocation. The layer accepts
1010/// a function to flush OpenTelemetry after the end of the invocation.
7575 let span = tracing:: info_span!(
7676 "Lambda function invocation" ,
7777 "otel.name" = req. context. env_config. function_name,
78+ "otel.kind" = field:: Empty ,
7879 { traceconv:: FAAS_TRIGGER } = & self . otel_attribute_trigger,
7980 { traceconv:: FAAS_INVOCATION_ID } = req. context. request_id,
8081 { traceconv:: FAAS_COLDSTART } = self . coldstart
You can’t perform that action at this time.
0 commit comments