-
Notifications
You must be signed in to change notification settings - Fork 774
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44bc90a
commit 0c775e5
Showing
9 changed files
with
79 additions
and
111 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/Serializer/.editorconfig
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,4 @@ | ||
[*Constants.cs] | ||
# SA1310: Field names should not contain underscore | ||
# Justification: These names describe the nested names and properties in the .Proto file. | ||
dotnet_diagnostic.SA1310.severity = none |
32 changes: 32 additions & 0 deletions
32
...OpenTelemetryProtocol/Implementation/Serializer/ProtobufOtlpCommonFieldNumberConstants.cs
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,32 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.Serializer; | ||
|
||
/// <summary> | ||
/// Defines field number constants for fields defined in | ||
/// <see href="https://github.com/open-telemetry/opentelemetry-proto/blob/v1.2.0/opentelemetry/proto/common/v1/common.proto"/>. | ||
/// </summary> | ||
internal static class ProtobufOtlpCommonFieldNumberConstants | ||
{ | ||
// InstrumentationScope | ||
internal const int InstrumentationScope_Name = 1; | ||
internal const int InstrumentationScope_Version = 2; | ||
internal const int InstrumentationScope_Attributes = 3; | ||
internal const int InstrumentationScope_Dropped_Attributes_Count = 4; | ||
|
||
// KeyValue | ||
internal const int KeyValue_Key = 1; | ||
internal const int KeyValue_Value = 2; | ||
|
||
// AnyValue | ||
internal const int AnyValue_String_Value = 1; | ||
internal const int AnyValue_Bool_Value = 2; | ||
internal const int AnyValue_Int_Value = 3; | ||
internal const int AnyValue_Double_Value = 4; | ||
internal const int AnyValue_Array_Value = 5; | ||
internal const int AnyValue_Kvlist_Value = 6; | ||
internal const int AnyValue_Bytes_Value = 7; | ||
|
||
internal const int ArrayValue_Value = 1; | ||
} |
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
Oops, something went wrong.