Skip to content
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

[exporter/tanzuobservability] use generated status header #20724

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions exporter/tanzuobservabilityexporter/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Tanzu Observability (Wavefront) Exporter

| Status | |
| ------------------------ |-----------------|
| Stability | [beta] |
| Supported pipeline types | traces, metrics |
| Distributions | [contrib] |

[beta]:https://github.com/open-telemetry/opentelemetry-collector#beta

[contrib]:https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
<!-- status autogenerated section -->
| Status | |
| ------------------------ |-----------|
| Stability | [beta] |
| Supported pipeline types | traces, metrics |
| Distributions | [contrib] |

[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
<!-- end autogenerated section -->

This exporter supports sending metrics and traces to [Tanzu Observability](https://tanzu.vmware.com/observability).

Expand Down
10 changes: 6 additions & 4 deletions exporter/tanzuobservabilityexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mdatagen metadata.yaml

package tanzuobservabilityexporter // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/tanzuobservabilityexporter"

import (
Expand All @@ -21,21 +23,21 @@ import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/exporterhelper"

"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/tanzuobservabilityexporter/internal/metadata"
)

const (
exporterType = "tanzuobservability"
// The stability level of the exporter.
stability = component.StabilityLevelBeta
)

// NewFactory creates a factory for the exporter.
func NewFactory() exporter.Factory {
return exporter.NewFactory(
exporterType,
createDefaultConfig,
exporter.WithTraces(createTracesExporter, stability),
exporter.WithMetrics(createMetricsExporter, stability),
exporter.WithTraces(createTracesExporter, metadata.Stability),
exporter.WithMetrics(createMetricsExporter, metadata.Stability),
)
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions exporter/tanzuobservabilityexporter/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: tanzuobservability

status:
type: exporter
stability: beta
pipelines: [traces, metrics]
distributions: [contrib]