Skip to content

Commit d288f1e

Browse files
authored
Add componentprofiles package (#10525)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This adds the componentprofiles package, for handline the profiles data type. <!-- Issue number if applicable --> #### Link to tracking issue See #10375 cc @mx-psi
1 parent 6d72c07 commit d288f1e

File tree

6 files changed

+139
-0
lines changed

6 files changed

+139
-0
lines changed

.chloggen/component-profiles.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: new_component
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: component/componentprofiles
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add componentprofiles module.
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [10525]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: [api]

component/componentprofiles/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ../../Makefile.Common

component/componentprofiles/config.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright The OpenTelemetry Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package componentprofiles // import "go.opentelemetry.io/collector/component/componentprofiles"
5+
6+
import "go.opentelemetry.io/collector/component"
7+
8+
func mustNewDataType(strType string) component.DataType {
9+
return component.MustNewType(strType)
10+
}
11+
12+
var (
13+
// DataTypeProfiles is the data type tag for profiles.
14+
DataTypeProfiles = mustNewDataType("profiles")
15+
)

component/componentprofiles/go.mod

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module go.opentelemetry.io/collector/component/componentprofiles
2+
3+
go 1.21.0
4+
5+
require go.opentelemetry.io/collector/component v0.104.0
6+
7+
require (
8+
github.com/gogo/protobuf v1.3.2 // indirect
9+
go.opentelemetry.io/collector/config/configtelemetry v0.104.0 // indirect
10+
go.opentelemetry.io/collector/pdata v1.11.0 // indirect
11+
go.opentelemetry.io/otel v1.28.0 // indirect
12+
go.opentelemetry.io/otel/metric v1.28.0 // indirect
13+
go.opentelemetry.io/otel/trace v1.28.0 // indirect
14+
go.uber.org/multierr v1.11.0 // indirect
15+
go.uber.org/zap v1.27.0 // indirect
16+
golang.org/x/net v0.26.0 // indirect
17+
golang.org/x/sys v0.21.0 // indirect
18+
golang.org/x/text v0.16.0 // indirect
19+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
20+
google.golang.org/grpc v1.65.0 // indirect
21+
google.golang.org/protobuf v1.34.2 // indirect
22+
)
23+
24+
replace go.opentelemetry.io/collector/pdata => ../../pdata
25+
26+
replace go.opentelemetry.io/collector/config/configtelemetry => ../../config/configtelemetry
27+
28+
replace go.opentelemetry.io/collector/component => ../

component/componentprofiles/go.sum

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

versions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module-sets:
1919
- go.opentelemetry.io/collector/cmd/builder
2020
- go.opentelemetry.io/collector/cmd/mdatagen
2121
- go.opentelemetry.io/collector/component
22+
- go.opentelemetry.io/collector/component/componentprofiles
2223
- go.opentelemetry.io/collector/confmap
2324
- go.opentelemetry.io/collector/confmap/converter/expandconverter
2425
- go.opentelemetry.io/collector/confmap/provider/envprovider

0 commit comments

Comments
 (0)