Skip to content

Commit

Permalink
[exporter/tanzuobservability] use generated status header (open-telem…
Browse files Browse the repository at this point in the history
…etry#20724)

This PR updates the component to generate the status table using mdatagen.

See related issue: open-telemetry#19172

Signed-off-by: Alex Boten <aboten@lightstep.com>
  • Loading branch information
Alex Boten authored and vincentfree committed Apr 18, 2023
1 parent 5bac16c commit 57943d6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
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]

0 comments on commit 57943d6

Please sign in to comment.