Skip to content

Commit

Permalink
examples(nodejs auto instr): add more enable:false (#3898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnan Rahić authored Jun 7, 2024
1 parent 928a439 commit 58d5bce
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
# Cloud-based Managed Tracetest
tracetest-agent:
image: kubeshop/tracetest-agent:latest
command:
- "--mode=verbose"
environment:
# Find the Agent API Key here: https://docs.tracetest.io/configuration/agent
- TRACETEST_API_KEY=${TRACETEST_API_KEY}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ provider.register()

const sdk = new opentelemetry.NodeSDK({
traceExporter: exporter,
instrumentations: [getNodeAutoInstrumentations()],
instrumentations: [
getNodeAutoInstrumentations({
'@opentelemetry/instrumentation-fs': {
enabled: false
},
'@opentelemetry/instrumentation-net': {
enabled: false
},
})
],
serviceName: 'quick-start-nodejs-manual-instrumentation'
})
sdk.start()
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ provider.register()

const sdk = new opentelemetry.NodeSDK({
traceExporter: exporter,
instrumentations: [getNodeAutoInstrumentations()],
instrumentations: [
getNodeAutoInstrumentations({
'@opentelemetry/instrumentation-fs': {
enabled: false
},
'@opentelemetry/instrumentation-net': {
enabled: false
},
})
],
serviceName: 'quick-start-nodejs-manual-instrumentation'
})
sdk.start()

0 comments on commit 58d5bce

Please sign in to comment.