Skip to content

Commit c2ec422

Browse files
committed
Add documentation for new processors
Signed-off-by: Raphael Silva <[email protected]>
1 parent da25ec8 commit c2ec422

File tree

5 files changed

+129
-0
lines changed

5 files changed

+129
-0
lines changed

src/config/sideBarData.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export const sideBarData = [
108108
{label: "Kafka Receiver/Expoter", link: "/docs/components/kafka-receiver-exporter"},
109109
{label: "Logging Exporter", link: "/docs/components/misc-exporters#logging-exporter"},
110110
{label: "OTLP Exporters", link: "/docs/components/otlp-exporter"},
111+
{label: "Processors", link: "/docs/components/processors"},
111112
{label: "Prometheus Exporters", link: "/docs/components/prometheus-exporters"},
112113
{label: "StatsD Receiver", link: "/docs/components/statsd-receiver"},
113114
{label: "X-Ray Exporter", link: "/docs/getting-started/x-ray#configuring-the-aws-x-ray-exporter"},

src/content/BlogPosts/blogPosts.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ description:
66
path: /blog
77

88
blogs:
9+
- title: "AWS Distro for OpenTelemetry v0.29.0 is now available"
10+
author: "Raphael Silva"
11+
date: "15-May-2023"
12+
body:
13+
"AWS Distro for OpenTelemetry v0.29.0 is now available. You can download the latest AWS Distro for OpenTelemetry Collector image
14+
from the Amazon Elastic Container Registry (Amazon ECR) Public Gallery."
15+
link: "/docs/ReleaseBlogs/aws-distro-for-opentelemetry-collector-v0.29.0"
916
- title: "AWS Distro for OpenTelemetry Lambda Layers are now available with ADOT Collector v0.28.0"
1017
author: "Pavan Sai Vasireddy"
1118
date: "25-April-2023"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: 'AWS Distro for OpenTelemetry v0.29.0'
3+
description:
4+
This blog post is the release announcement for ADOT Collector v0.29.0
5+
---
6+
7+
import SectionSeparator from "components/MdxSectionSeparator/sectionSeparator.jsx"
8+
9+
<SectionSeparator />
10+
11+
[AWS Distro for OpenTelemetry (ADOT)](https://aws-otel.github.io/) Collector v0.29.0 is now available.
12+
You can download the latest [ADOT Collector image](https://gallery.ecr.aws/aws-observability/aws-otel-collector) from the
13+
[Amazon Elastic Container Registry (Amazon ECR)](https://aws.amazon.com/ecr/) Public Gallery.
14+
15+
<SectionSeparator />
16+
17+
**Release Highlights**
18+
19+
* OpenTelemetry Collector [v0.75.0](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.75.0)
20+
* OpenTelemetry Collector [v0.76.0](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.76.0)
21+
* OpenTelemetry Collector [v0.76.1](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.76.1)
22+
* Add support to Group By Trace and Tail Sampling processors. More details can be found [here](/docs/components/processors).
23+
24+
25+
26+
Detailed release notes are on [GitHub](https://github.com/aws-observability/aws-otel-collector/releases).
27+
All code changes are upstream in the respective OpenTelemetry project components.
28+
29+
**Download**
30+
31+
Detailed technical documentation is available on the [ADOT developer site](https://aws-otel.github.io/),
32+
and you can [download the distribution](https://aws-otel.github.io/download) from
33+
[GitHub](https://github.com/aws-observability/aws-otel-collector/releases/tag/v0.29.0).
34+
You can also download the latest [ADOT Collector image](https://gallery.ecr.aws/aws-observability/aws-otel-collector)
35+
from the [Amazon Elastic Container Registry (Amazon ECR)](https://aws.amazon.com/ecr/) Public Gallery.
36+
37+
To learn more about how to use AWS Distro for OpenTelemetry (ADOT) to collect data for your observability solution,
38+
check out the hands-on [AWS Observability workshop](https://observability.workshop.aws/en/adot.html).
39+
Please file an [issue](https://github.com/aws-observability/aws-otel-community/issues) if you have any
40+
questions about the distribution, features, or its components.
41+
42+
We also welcome you to participate in the [OpenTelemetry project](https://github.com/open-telemetry).
43+
The project was [approved for incubation](https://www.cncf.io/blog/2021/08/26/opentelemetry-becomes-a-cncf-incubating-project/) status
44+
in August 2021 by the Cloud Native Computing Foundation Technical Oversight Committee (CNCF TOC). Learn more about
45+
[AWS Distro for OpenTelemetry](https://aws.amazon.com/blogs/opensource/category/management-tools/aws-distro-for-opentelemetry/) on the
46+
[AWS Open Source Blog](https://aws.amazon.com/blogs/opensource/category/management-tools/aws-distro-for-opentelemetry/), where we announced
47+
the distribution’s [general availability for tracing](https://aws.amazon.com/blogs/opensource/aws-distro-for-opentelemetry-is-now-ga-for-tracing/) in September 2021
48+
and the distribution's [general availability for metrics](https://aws.amazon.com/blogs/opensource/aws-distro-for-opentelemetry-is-now-generally-available-for-metrics/) in May 2022.

src/content/Downloads/downloads.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
- version: 'AWS Distro for OpenTelemetry Collector Version 0.29.0'
2+
releaseDate: 'May-15-2023'
3+
license: 'Apache-2.0'
4+
releaseNotesLink: 'https://github.com/aws-observability/aws-otel-collector/releases/tag/v0.29.0'
5+
documentationLink: 'https://github.com/aws-observability/aws-otel-collector/blob/v0.29.0/README.md'
6+
downloadLink: 'https://gallery.ecr.aws/aws-observability/aws-otel-collector'
17
- version: 'AWS Distro for OpenTelemetry Collector Version 0.28.0'
28
releaseDate: 'April-07-2023'
39
license: 'Apache-2.0'

src/docs/components/processors.mdx

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: 'Processors'
3+
description: |
4+
Processors pre-process the data collected by the receivers before they are exported by exporters. Processors can modify, batch or
5+
filter the data flowing through the pipeline.
6+
path: '/docs/components/kafka-receiver-exporter'
7+
---
8+
9+
import SectionSeparator from "components/MdxSectionSeparator/sectionSeparator.jsx"
10+
11+
Processors are used in several stages of an OpenTelemetry collector pipeline. They are used to pre-process the data being passed in the pipeline. In a processor the data can be modified, batched, filtered or sampled. The
12+
ADOT collector supports a selected list of processors.
13+
14+
<SectionSeparator />
15+
16+
## Processors supported by ADOT collector
17+
18+
The ADOT collector supports the following processors:
19+
20+
* [attributesprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/attributesprocessor#attributes-processor)
21+
* [batchprocessor](https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/batchprocessor#batch-processor)
22+
* [deltatorateprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/deltatorateprocessor#delta-to-rate-processor)
23+
* [filterprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/filterprocessor#filter-processor)
24+
* [groupbytraceprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/groupbytraceprocessor/README.md)
25+
* [memorylimiterprocessor](https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor#memory-limiter-processor)
26+
* [metricsgenerationprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricsgenerationprocessor#metrics-generation-processor)
27+
* [metricstransformprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#metrics-transform-processor)
28+
* [probabilisticsamplerprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/probabilisticsamplerprocessor#probabilistic-sampling-processor)
29+
* [resourcedetectionprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor#resource-detection-processor)
30+
* [resourceprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourceprocessor#resource-processor)
31+
* [spanprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/spanprocessor#span-processor)
32+
* [tailsamplingprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor/README.md)
33+
34+
## Notes on Group by Trace and Tail Sampling processors
35+
36+
In order to achieve the desired results when using the tailsampling processor and groupbytrace, **do not use a batch processor before these components in a pipeline**. It is important to pay attention to this detail because these components will try to group all the spans belonging to a trace. In the case of the tailsampling processor this will allow for a sampling decision to affect all spans of a trace, creating a full picture of the trace in case the trace is sampled. A batch processor immediately after these components does not cause any problems and is recommended to properly pre-process data for subsequent exporters.
37+
38+
Besides that, you have to tune the `wait_duration` parameter of the groupbytrace processor and `decision_wait` parameter of the tailsampling processor to be greater than or equal to the maximum expected latency of a trace in your system. Again, this will guarantee that spans of a same trace are processed in the same batch.
39+
40+
Finally to really limit the number of traces that should be kept in memory, we recommend that you use the groupbytrace processor before the tailsampling processor. The reason why is because the groupbytrace processor implements a limit for the number of traces to be kept in memory while this is not fully implemented in the tailsampling processor.
41+
42+
The groupbytrace processor will drop the oldest trace in case the `num_traces` limit is exceeded. `wait_duration` and `num_traces` should be scaled to consider the expected traffic in the monitored applications. For example, if the maximum expected latency for a request in your application is 10s and the maximum traffic in number of requests per second that your application can have is 1000 requests per second, `wait_duration` should be set to 10s and `num_traces` should be set to at least 10000 (10 * 1000 requests per second). It is highly recommended that you monitor the `otelcol_processor_groupbytrace_traces_evicted` metric from the collector [self telemetry](https://opentelemetry.io/docs/collector/configuration/#service). If the value in the metric is greater than zero, that means that the collector is receiving more traffic than it can handle and you should increase the `num_traces` accordingly.
43+
44+
45+
Example:
46+
```
47+
processors:
48+
groupbytrace:
49+
wait_duration: 10s
50+
num_traces: 20000 # Double the max expected traffic (10 * 1000 requests per second)
51+
tail_sampling:
52+
decision_wait: 1s # This value should be smaller than wait_duration
53+
policies:
54+
- ..... # Applicable policies
55+
batch/traces:
56+
timeout: 0s # No need to wait more since this will happen in previous processors
57+
send_batch_max_size: 8196 # This will still allow us to limit the size of the batches sent to subsequent exporters
58+
59+
service:
60+
pipelines:
61+
traces:
62+
receivers: [otlp]
63+
processors: [groupbytrace, tail_sampling, batch/traces]
64+
exporters: [awsxray]
65+
66+
```
67+

0 commit comments

Comments
 (0)