Skip to content

Commit

Permalink
[chore] add generated status to jaegerremotesampling (#20320)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Mar 29, 2023
1 parent 1af3c5f commit f43bd29
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 7 deletions.
14 changes: 8 additions & 6 deletions extension/jaegerremotesampling/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Jaeger's Remote Sampling extension
<!-- status autogenerated section -->
| Status | |
| ------------------------ |-----------|
| Stability | [alpha] |
| Distributions | [contrib] |

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

This extension allows serving sampling strategies following the Jaeger's remote sampling API. This extension can be configured to proxy requests to a backing remote sampling server, which could potentially be a Jaeger Collector down the pipeline, or a static JSON file from the local file system.

Expand Down Expand Up @@ -85,5 +89,3 @@ A sampling strategy file could look like:
```
Source: https://www.jaegertracing.io/docs/1.28/sampling/#collector-sampling-configuration

[alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
17 changes: 17 additions & 0 deletions extension/jaegerremotesampling/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mdatagen metadata.yaml

package jaegerremotesampling // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/jaegerremotesampling"
4 changes: 3 additions & 1 deletion extension/jaegerremotesampling/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (
"go.opentelemetry.io/collector/config/confighttp"
"go.opentelemetry.io/collector/config/confignet"
"go.opentelemetry.io/collector/extension"

"github.com/open-telemetry/opentelemetry-collector-contrib/extension/jaegerremotesampling/internal/metadata"
)

const (
Expand All @@ -35,7 +37,7 @@ func NewFactory() extension.Factory {
typeStr,
createDefaultConfig,
createExtension,
component.StabilityLevelBeta,
metadata.Stability,
)
}

Expand Down

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

6 changes: 6 additions & 0 deletions extension/jaegerremotesampling/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: jaegerremotesampling

status:
type: extension
stability: alpha
distributions: [contrib]

0 comments on commit f43bd29

Please sign in to comment.