Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autoinstrumentation of NodeJS #507

Merged
merged 20 commits into from
Nov 10, 2021
Prev Previous commit
Next Next commit
Drift
  • Loading branch information
Anuraag Agrawal committed Nov 9, 2021
commit a302e31f6cb939e15af1d9620770fcb3def82639
4 changes: 4 additions & 0 deletions pkg/instrumentation/podmutator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ func TestMutatePod(t *testing.T) {
Name: "OTEL_EXPORTER_OTLP_ENDPOINT",
Value: "http://collector:12345",
},
{
Name: "OTEL_RESOURCE_ATTRIBUTES",
Value: "k8s.container.name=app,k8s.namespace.name=nodejs",
},
{
Name: "NODE_OPTIONS",
Value: nodeRequireArgument,
Expand Down
4 changes: 4 additions & 0 deletions pkg/instrumentation/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ func TestInjectNodeJS(t *testing.T) {
Name: "OTEL_EXPORTER_OTLP_ENDPOINT",
Value: "https://collector:4318",
},
{
Name: "OTEL_RESOURCE_ATTRIBUTES",
Value: "k8s.container.name=app,k8s.namespace.name=",
},
{
Name: "NODE_OPTIONS",
Value: nodeRequireArgument,
Expand Down