-
Notifications
You must be signed in to change notification settings - Fork 494
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
Python instrumentation featuregate to cli #2751
Changes from 4 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: breaking | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action) | ||
component: operator | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: remove featuregate `EnablePythonAutoInstrumentationSupport`. Use command line flag `--enable-python-instrumentation` instead | ||
|
||
# One or more tracking issues related to the change | ||
issues: [2582, 2672] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ func main() { | |
enableMultiInstrumentation bool | ||
enableApacheHttpdInstrumentation bool | ||
enableDotNetInstrumentation bool | ||
enablePythonInstrumentation bool | ||
collectorImage string | ||
targetAllocatorImage string | ||
operatorOpAMPBridgeImage string | ||
|
@@ -136,6 +137,7 @@ func main() { | |
pflag.BoolVar(&enableMultiInstrumentation, "enable-multi-instrumentation", false, "Controls whether the operator supports multi instrumentation") | ||
pflag.BoolVar(&enableApacheHttpdInstrumentation, constants.FlagApacheHttpd, true, "Controls whether the operator supports Apache HTTPD auto-instrumentation") | ||
pflag.BoolVar(&enableDotNetInstrumentation, constants.FlagDotNet, true, "Controls whether the operator supports dotnet auto-instrumentation") | ||
pflag.BoolVar(&enablePythonInstrumentation, constants.FlagPython, true, "Controls whether the operator supports python auto-instrumentation") | ||
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. Should this instrumentation be disabled by default? 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. It was a beta feature flag, and therefore enabled by default, so it should stay enabled imo. 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. enabled by default sounds good |
||
stringFlagOrEnv(&collectorImage, "collector-image", "RELATED_IMAGE_COLLECTOR", fmt.Sprintf("ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector:%s", v.OpenTelemetryCollector), "The default OpenTelemetry collector image. This image is used when no image is specified in the CustomResource.") | ||
stringFlagOrEnv(&targetAllocatorImage, "target-allocator-image", "RELATED_IMAGE_TARGET_ALLOCATOR", fmt.Sprintf("ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:%s", v.TargetAllocator), "The default OpenTelemetry target allocator image. This image is used when no image is specified in the CustomResource.") | ||
stringFlagOrEnv(&operatorOpAMPBridgeImage, "operator-opamp-bridge-image", "RELATED_IMAGE_OPERATOR_OPAMP_BRIDGE", fmt.Sprintf("ghcr.io/open-telemetry/opentelemetry-operator/operator-opamp-bridge:%s", v.OperatorOpAMPBridge), "The default OpenTelemetry Operator OpAMP Bridge image. This image is used when no image is specified in the CustomResource.") | ||
|
@@ -178,6 +180,7 @@ func main() { | |
"enable-multi-instrumentation", enableMultiInstrumentation, | ||
"enable-apache-httpd-instrumentation", enableApacheHttpdInstrumentation, | ||
"enable-dotnet-instrumentation", enableDotNetInstrumentation, | ||
"enable-python-instrumentation", enablePythonInstrumentation, | ||
) | ||
|
||
restConfig := ctrl.GetConfigOrDie() | ||
|
@@ -197,6 +200,7 @@ func main() { | |
config.WithEnableMultiInstrumentation(enableMultiInstrumentation), | ||
config.WithEnableApacheHttpdInstrumentation(enableApacheHttpdInstrumentation), | ||
config.WithEnableDotNetInstrumentation(enableDotNetInstrumentation), | ||
config.WithEnablePythonInstrumentation(enablePythonInstrumentation), | ||
config.WithTargetAllocatorImage(targetAllocatorImage), | ||
config.WithOperatorOpAMPBridgeImage(operatorOpAMPBridgeImage), | ||
config.WithAutoInstrumentationJavaImage(autoInstrumentationJava), | ||
|
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.
What was the
flag
what we are removing?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.
Should be
operator.autoinstrumentation.python