File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
6
6
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
7
7
8
+ ## [ 0.2.7] 2023-09-03
8
9
10
+ - don't enrich span for outgoing trace http post
11
+
9
12
## [ 0.2.6] 2023-09-03
10
13
11
14
- fix build
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @baselime/lambda-node-opentelemetry" ,
3
- "version" : " 0.2.6 " ,
3
+ "version" : " 0.2.7 " ,
4
4
"description" : " OpenTelemetry auto tracer for Node.JS based AWS Lambda functions" ,
5
5
"keywords" : [
6
6
" nodejs" ,
Original file line number Diff line number Diff line change @@ -72,11 +72,10 @@ const instrumentations: Instrumentation[] = [
72
72
new HttpInstrumentation ( {
73
73
requestHook : ( span , request ) => {
74
74
75
- if ( request instanceof ClientRequest ) {
75
+ if ( request instanceof ClientRequest && request . host !== 'sandbox' && request . host !== 'console.baselime.cc' ) {
76
76
const requestBodyChunks : string [ ] = [ ] ;
77
77
const oldWrite = request . write . bind ( request ) ;
78
78
request . write = ( data : any ) => {
79
- console . log ( 'request body chunk:' , decodeURIComponent ( data . toString ( ) ) ) ;
80
79
requestBodyChunks . push ( decodeURIComponent ( data . toString ( ) ) ) ;
81
80
return oldWrite ( data ) ;
82
81
} ;
@@ -85,7 +84,6 @@ const instrumentations: Instrumentation[] = [
85
84
if ( data ) {
86
85
requestBodyChunks . push ( decodeURIComponent ( data . toString ( ) ) ) ;
87
86
}
88
- console . log ( 'request body:' , requestBodyChunks . join ( ) , request ) ;
89
87
const headers = request . getHeaders ( ) ;
90
88
91
89
const body : string = requestBodyChunks . join ( ) ;
You can’t perform that action at this time.
0 commit comments