-
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
Conversation
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.
Looks good but I am not sure if need those comments
@@ -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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, all AWS_APP_SIGNALS
will be replaced by AWS_APPLICATION_SIGNALS
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, do we need this comment?
{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 comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, do we need this comment?
{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 comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, do we need this comment?
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, do we need this comment?
{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 comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, do we need this comment?
@@ -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 |
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
{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 comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, do we need this comment?
All |
Issue #, if available:
Description of changes:
Rename app_signals to application_signals for GA release. It's part of the PR: aws/amazon-cloudwatch-agent#1133.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.