Skip to content

Commit

Permalink
[datadogconnector] Add contrib to list of distributions (#27243)
Browse files Browse the repository at this point in the history
**Description:**

This PR adds contrib to the list of distributions for the
datadogconnector (related PR:
open-telemetry/opentelemetry-collector-releases#389).

This PR also adds a section in the README of the processor which links
to the setup instructions of the connector.
  • Loading branch information
mackjmr committed Sep 27, 2023
1 parent 66cbd50 commit 1869b31
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion connector/datadogconnector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
<!-- status autogenerated section -->
| Status | |
| ------------- |-----------|
| Distributions | [] |
| Distributions | [contrib] |
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Aconnector%2Fdatadog%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Aconnector%2Fdatadog) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Aconnector%2Fdatadog%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Aconnector%2Fdatadog) |
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@mx-psi](https://www.github.com/mx-psi), [@gbbr](https://www.github.com/gbbr), [@dineshg13](https://www.github.com/dineshg13) |

[alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib

## Supported Pipeline Types

Expand Down
2 changes: 1 addition & 1 deletion connector/datadogconnector/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ status:
class: connector
stability:
alpha: [traces_to_metrics]
distributions: []
distributions: [contrib]
codeowners:
active: [mx-psi, gbbr, dineshg13]
4 changes: 4 additions & 0 deletions processor/datadogprocessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
<!-- end autogenerated section -->

## Deprecated in favor of datadogconnector

The `datadogprocessor` has been deprecated in favor of the `datadogconnector`. Please refer to the [following docs](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/connector/datadogconnector/README.md#usage) in order to update to the `datadogconnector`.

## Description


Expand Down
8 changes: 7 additions & 1 deletion processor/datadogprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ func newProcessor(ctx context.Context, logger *zap.Logger, config component.Conf
if err != nil {
return nil, err
}
logger.Warn("This component is deprecated in favor of the Datadog connector")
logger.Warn(
"The datadogprocessor has been deprecated in favor of the datadogconnector",
zap.String(
"documentation",
"https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/datadogprocessor/README.md#deprecated-in-favor-of-datadogconnector",
),
)
return &datadogProcessor{
logger: logger,
nextConsumer: nextConsumer,
Expand Down

0 comments on commit 1869b31

Please sign in to comment.