github.com/alibaba/ilogtail/pkg@v0.0.0-20250526110833-c53b480d046c/protocol/otlp/constant.go (about)

     1  // Copyright 2023 iLogtail Authors
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package otlp
    16  
    17  // internal event tag keys of otlp logs/metrics/traces.
    18  // don't forget to update IsInternalTag when adding new tag keys.
    19  const (
    20  	TagKeyScopeName                    = "otlp.scope.name"
    21  	TagKeyScopeVersion                 = "otlp.scope.version"
    22  	TagKeyScopeDroppedAttributesCount  = "otlp.scope.dropped.attributes.count"
    23  	TagKeyMetricIsMonotonic            = "otlp.metric.ismonotonic"
    24  	TagKeyMetricAggregationTemporality = "otlp.metric.aggregation.temporality"
    25  	TagKeyMetricHistogramType          = "otlp.metric.histogram.type"
    26  	TagKeySpanStatusMessage            = "otlp.span.status.message"
    27  	TagKeySpanDroppedEventsCount       = "otlp.span.dropped.events.count"
    28  	TagKeySpanDroppedLinksCount        = "otlp.span.dropped.links.count"
    29  	TagKeySpanDroppedAttrsCount        = "otlp.span.dropped.attributes.count"
    30  	TagKeyLogFlag                      = "otlp.log.flag"
    31  )
    32  
    33  // internal field names of otlp metrics.
    34  // don't forget to update IsInternalField when adding new tag keys.
    35  const (
    36  	FieldCount          = "count"
    37  	FieldSum            = "sum"
    38  	FieldMin            = "min"
    39  	FieldMax            = "max"
    40  	FieldScale          = "scale"
    41  	FieldPositiveOffset = "positive.offset"
    42  	FieldNegativeOffset = "negative.offset"
    43  	FieldZeroCount      = "zero.count"
    44  )