Skip to content
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
4 changes: 1 addition & 3 deletions cmd/telemetrygen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
<!-- status autogenerated section -->
| Status | |
| ------------- |-----------|
| Stability | [development]: metrics, logs |
| | [alpha]: traces |
| Stability | [alpha]: metrics, traces, logs |
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Acmd%2Ftelemetrygen%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Acmd%2Ftelemetrygen) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Acmd%2Ftelemetrygen%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Acmd%2Ftelemetrygen) |
| [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), [@codeboten](https://www.github.com/codeboten), [@Erog38](https://www.github.com/Erog38), [@bogdan-st](https://www.github.com/bogdan-st) |

[development]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#development
[alpha]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#alpha
<!-- end autogenerated section -->

Expand Down
8 changes: 4 additions & 4 deletions cmd/telemetrygen/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
var rootCmd = &cobra.Command{
Use: "telemetrygen",
Short: "Telemetrygen simulates a client generating traces, metrics, and logs",
Example: "telemetrygen traces\ntelemetrygen metrics\ntelemetrygen logs",
Example: "telemetrygen metrics --otlp-insecure --metrics 1\ntelemetrygen traces --otlp-insecure --traces 1\ntelemetrygen logs --otlp-insecure --logs 1",
}

// tracesCmd is the command responsible for sending traces
Expand All @@ -42,7 +42,7 @@ var tracesCmd = &cobra.Command{
// metricsCmd is the command responsible for sending metrics
var metricsCmd = &cobra.Command{
Use: "metrics",
Short: "Simulates a client generating metrics. (Stability level: development)",
Short: "Simulates a client generating metrics. (Stability level: alpha)",
Example: "telemetrygen metrics",
RunE: func(*cobra.Command, []string) error {
return metrics.Start(metricsCfg)
Expand All @@ -52,15 +52,15 @@ var metricsCmd = &cobra.Command{
// logsCmd is the command responsible for sending logs
var logsCmd = &cobra.Command{
Use: "logs",
Short: "Simulates a client generating logs. (Stability level: development)",
Short: "Simulates a client generating logs. (Stability level: alpha)",
Example: "telemetrygen logs",
RunE: func(*cobra.Command, []string) error {
return logs.Start(logsCfg)
},
}

func init() {
rootCmd.AddCommand(tracesCmd, metricsCmd, logsCmd)
rootCmd.AddCommand(metricsCmd, tracesCmd, logsCmd)

tracesCfg = traces.NewConfig()
tracesCfg.Flags(tracesCmd.Flags())
Expand Down
3 changes: 1 addition & 2 deletions cmd/telemetrygen/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ status:
disable_codecov_badge: true
class: cmd
stability:
alpha: [traces]
development: [metrics, logs]
alpha: [metrics, traces, logs]
codeowners:
active: [mx-psi, codeboten, Erog38, bogdan-st]
Loading