Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 671764c

Browse files
Merge pull request #2515 from splunk/jcatera-docguild-27762
Adding pipeline example and link to the environment doc to help customers use resources with services and pipelines.
2 parents f2f4f91 + 77c5dad commit 671764c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

apm/set-up-apm/environments.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ The :new-page:`Splunk Distribution of OpenTelemetry Collector agent config file
6161
6262
Note that unlike standard attributes, the ``deployment.environment`` tag is set with the ``resource`` processor in OpenTelemetry, because this tag is typically associated with the host or container in which the application is running.
6363

64+
The ``resource/add_environment`` resorce can be then added to any pipeline of the ``service`` section of your configuration file. See
65+
:ref:`Sample configurations <sample_configurations>` for more examples.
66+
67+
.. code-block:: yaml
68+
69+
service:
70+
pipelines:
71+
metrics:
72+
processors: [resource/add_environment]
73+
logs:
74+
processors: [resource/add_environment]
75+
traces:
76+
processors: [resource/add_environment]
77+
6478
To learn more about how to add span tags via the Splunk Distribution of OpenTelemetry Collector, see :ref:`otel-span-tags`.
6579

6680
Alert on specific environments

gdi/opentelemetry/components/resource-processor.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Follow these steps to configure and activate the component:
5151
2. Configure the resource processor as described in the next section.
5252
3. Restart the Collector.
5353

54+
.. _sample_configurations:
55+
5456
Sample configurations
5557
----------------------
5658

0 commit comments

Comments
 (0)