Skip to content

Commit

Permalink
Do not set OTel zc for dotnet on default env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Jan 24, 2025
1 parent f776e89 commit ff6a39b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions deployments/ansible/roles/collector/tasks/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
CORECLR_PROFILER: "{918728DD-259F-4A6A-AC2B-B85E1B658318}"
OTEL_RESOURCE_ATTRIBUTES: >-
deployment.environment={{ splunk_dotnet_auto_instrumentation_environment }},
{{ splunk_dotnet_auto_instrumentation_global_tags }},
splunk.zc.method=splunk-otel-dotnet-{{ splunk_dotnet_version }}
{{ splunk_dotnet_auto_instrumentation_global_tags }}
OTEL_SERVICE_NAME: "{{ splunk_dotnet_auto_instrumentation_service_name }}"
SPLUNK_PROFILER_ENABLED: "{{ splunk_dotnet_auto_instrumentation_enable_profiler }}"
SPLUNK_PROFILER_MEMORY_ENABLED: "{{ splunk_dotnet_auto_instrumentation_enable_profiler_memory }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{%- if (item.value | type_debug) == "bool" -%}
{%- set value = item.value | string | lower -%}
{%- endif -%}
{%- if item.key == "SIGNALFX_GLOBAL_TAGS" -%}
{%- if item.key == "OTEL_RESOURCE_ATTRIBUTES" -%}
{%- set method = "" -%}
{%- if splunk_dotnet_version.stdout != "" -%}
{%- set method = "splunk.zc.method=splunk-otel-dotnet-" + (splunk_dotnet_version.stdout | trim) -%}
Expand Down Expand Up @@ -113,7 +113,7 @@
{%- if (item.value | type_debug) == "bool" -%}
{%- set value = item.value | string | lower -%}
{%- endif -%}
{%- if item.key == "SIGNALFX_GLOBAL_TAGS" -%}
{%- if item.key == "OTEL_RESOURCE_ATTRIBUTES" -%}
{%- set method = "" -%}
{%- if splunk_dotnet_version.stdout != "" -%}
{%- set method = "splunk.zc.method=splunk-otel-dotnet-" + (splunk_dotnet_version.stdout | trim) -%}
Expand Down

0 comments on commit ff6a39b

Please sign in to comment.