-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split pdata package by telemetry signal type
- Loading branch information
Showing
31 changed files
with
880 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// 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. | ||
|
||
package pcommon // import "go.opentelemetry.io/collector/model/pcommon" | ||
|
||
// This file contains aliases to data structures that are common for all | ||
// signal types, such as timestamps, attributes, etc. | ||
|
||
import "go.opentelemetry.io/collector/model/internal/pdata" | ||
|
||
// ValueType is an alias for pdata.ValueType type. | ||
type ValueType = pdata.ValueType | ||
|
||
// AttributeValueType is an alias for pdata.ValueType type. | ||
// Deprecated: [v0.48.0] Use ValueType instead. | ||
type AttributeValueType = pdata.ValueType | ||
|
||
const ( | ||
ValueTypeEmpty = pdata.ValueTypeEmpty | ||
ValueTypeString = pdata.ValueTypeString | ||
ValueTypeInt = pdata.ValueTypeInt | ||
ValueTypeDouble = pdata.ValueTypeDouble | ||
ValueTypeBool = pdata.ValueTypeBool | ||
ValueTypeMap = pdata.ValueTypeMap | ||
ValueTypeSlice = pdata.ValueTypeSlice | ||
ValueTypeBytes = pdata.ValueTypeBytes | ||
) | ||
|
||
// Value is an alias for pdata.Value struct. | ||
type Value = pdata.Value | ||
|
||
// Deprecated: [v0.48.0] Use Value instead. | ||
type AttributeValue = pdata.Value | ||
|
||
// Aliases for functions to create pdata.Value. | ||
var ( | ||
NewValueEmpty = pdata.NewValueEmpty | ||
NewValueString = pdata.NewValueString | ||
NewValueInt = pdata.NewValueInt | ||
NewValueDouble = pdata.NewValueDouble | ||
NewValueBool = pdata.NewValueBool | ||
NewValueMap = pdata.NewValueMap | ||
NewValueSlice = pdata.NewValueSlice | ||
NewValueBytes = pdata.NewValueBytes | ||
) | ||
|
||
// Map is an alias for pdata.Map struct. | ||
type Map = pdata.Map | ||
|
||
// Deprecated: [v0.48.0] Use Map instead. | ||
type AttributeMap = pdata.Map | ||
|
||
// Aliases for functions to create pdata.Map. | ||
var ( | ||
NewMap = pdata.NewMap | ||
NewMapFromRaw = pdata.NewMapFromRaw | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// 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. | ||
|
||
package pcommon // import "go.opentelemetry.io/collector/model/pcommon" | ||
|
||
import "go.opentelemetry.io/collector/model/internal/pdata" | ||
|
||
// SpanID is an alias for pdata.SpanID struct. | ||
type SpanID = pdata.SpanID | ||
|
||
// InvalidSpanID is an alias for pdata.InvalidSpanID function. | ||
var InvalidSpanID = pdata.InvalidSpanID | ||
|
||
// NewSpanID is an alias for a function to create new SpanID. | ||
var NewSpanID = pdata.NewSpanID |
Oops, something went wrong.