@@ -18,7 +18,6 @@ import {getCurrentContext, ExecutionContext} from './async_local_storage';
1818import { Buffer } from 'buffer' ;
1919
2020export const EXECUTION_CONTEXT_LABELS_KEY = 'logging.googleapis.com/labels' ;
21- export const EXECUTION_CONTEXT_TRACE_KEY = 'logging.googleapis.com/trace' ;
2221export const EXECUTION_CONTEXT_SPAN_ID_KEY = 'logging.googleapis.com/spanId' ;
2322const SEVERITY = 'severity' ;
2423
@@ -132,7 +131,6 @@ export function getModifiedData(
132131 let dataWithContext : {
133132 message : string | Uint8Array ;
134133 'logging.googleapis.com/labels' : { execution_id : string | undefined } ;
135- 'logging.googleapis.com/trace' : string | undefined ;
136134 'logging.googleapis.com/spanId' : string | undefined ;
137135 severity ?: string | undefined ;
138136 } ;
@@ -155,7 +153,6 @@ function getTextWithContext(
155153 return {
156154 message : data ,
157155 [ EXECUTION_CONTEXT_LABELS_KEY ] : { execution_id : context . executionId } ,
158- [ EXECUTION_CONTEXT_TRACE_KEY ] : context . traceId ,
159156 [ EXECUTION_CONTEXT_SPAN_ID_KEY ] : context . spanId ,
160157 } ;
161158}
@@ -169,7 +166,6 @@ function getJSONWithContext(json: any, context: ExecutionContext) {
169166 }
170167 return {
171168 ...json ,
172- [ EXECUTION_CONTEXT_TRACE_KEY ] : context . traceId ,
173169 [ EXECUTION_CONTEXT_SPAN_ID_KEY ] : context . spanId ,
174170 } ;
175171}
0 commit comments