-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update app_signals to application_signals #172
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,27 +63,29 @@ func getDefaultInstrumentation(agentConfig *adapters.CwaConfig) (*v1alpha1.Instr | |
Java: v1alpha1.Java{ | ||
Image: javaInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_SMP_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_SMP_EXPORTER_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, do we need this comment? |
||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_LOGS_EXPORTER", Value: "none"}, | ||
}, | ||
}, | ||
Python: v1alpha1.Python{ | ||
Image: pythonInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: exporterPrefix + "cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_PYTHON_DISTRO", Value: "aws_distro"}, | ||
{Name: "OTEL_PYTHON_CONFIGURATOR", Value: "aws_configurator"}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,27 +39,29 @@ func Test_getDefaultInstrumentation(t *testing.T) { | |
Java: v1alpha1.Java{ | ||
Image: defaultJavaInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_SMP_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need this comment? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, all |
||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_SMP_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, do we need this comment? |
||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_LOGS_EXPORTER", Value: "none"}, | ||
}, | ||
}, | ||
Python: v1alpha1.Python{ | ||
Image: defaultPythonInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_PYTHON_DISTRO", Value: "aws_distro"}, | ||
{Name: "OTEL_PYTHON_CONFIGURATOR", Value: "aws_configurator"}, | ||
|
@@ -88,27 +90,29 @@ func Test_getDefaultInstrumentation(t *testing.T) { | |
Java: v1alpha1.Java{ | ||
Image: defaultJavaInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_SMP_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, do we need this comment? |
||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_SMP_EXPORTER_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, do we need this comment? |
||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_LOGS_EXPORTER", Value: "none"}, | ||
}, | ||
}, | ||
Python: v1alpha1.Python{ | ||
Image: defaultPythonInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: "https://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_PYTHON_DISTRO", Value: "aws_distro"}, | ||
{Name: "OTEL_PYTHON_CONFIGURATOR", Value: "aws_configurator"}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,27 +51,29 @@ func TestGetInstrumentationInstanceFromNameSpaceDefault(t *testing.T) { | |
Java: v1alpha1.Java{ | ||
Image: defaultJavaInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_SMP_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, do we need this comment? |
||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_SMP_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, do we need this comment? |
||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_LOGS_EXPORTER", Value: "none"}, | ||
}, | ||
}, | ||
Python: v1alpha1.Python{ | ||
Image: defaultPythonInstrumentationImage, | ||
Env: []corev1.EnvVar{ | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_ENABLED", Value: "true"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_ENABLED", Value: "true"}, | ||
{Name: "OTEL_TRACES_SAMPLER_ARG", Value: "endpoint=http://cloudwatch-agent.amazon-cloudwatch:2000"}, | ||
{Name: "OTEL_TRACES_SAMPLER", Value: "xray"}, | ||
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"}, | ||
{Name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/traces"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, //TODO: remove in favor of new name once safe | ||
{Name: "OTEL_AWS_APPLICATION_SIGNALS_EXPORTER_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4316/v1/metrics"}, | ||
{Name: "OTEL_METRICS_EXPORTER", Value: "none"}, | ||
{Name: "OTEL_PYTHON_DISTRO", Value: "aws_distro"}, | ||
{Name: "OTEL_PYTHON_CONFIGURATOR", Value: "aws_configurator"}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, do we need this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think it exists so that we are backwards compatible until the SDK releases the new version