@@ -166,7 +166,7 @@ internal OtlpLogs.LogRecord ToOtlpLog(LogRecord logRecord)
166
166
{
167
167
otlpLogRecord . Body = new OtlpCommon . AnyValue { StringValue = attribute . Value as string } ;
168
168
}
169
- else if ( OtlpKeyValueTransformer . Instance . TryTransformTag ( attribute , out var result , attributeValueLengthLimit ) )
169
+ else if ( OtlpTagTransformer . Instance . TryTransformTag ( attribute , out var result , attributeValueLengthLimit ) )
170
170
{
171
171
AddAttribute ( otlpLogRecord , result , attributeCountLimit ) ;
172
172
}
@@ -224,7 +224,7 @@ void ProcessScope(LogRecordScope scope, OtlpLogs.LogRecord otlpLog)
224
224
}
225
225
else
226
226
{
227
- if ( OtlpKeyValueTransformer . Instance . TryTransformTag ( scopeItem , out var result , attributeValueLengthLimit ) )
227
+ if ( OtlpTagTransformer . Instance . TryTransformTag ( scopeItem , out var result , attributeValueLengthLimit ) )
228
228
{
229
229
AddAttribute ( otlpLog , result , attributeCountLimit ) ;
230
230
}
@@ -257,7 +257,7 @@ private static void AddAttribute(OtlpLogs.LogRecord logRecord, OtlpCommon.KeyVal
257
257
private static void AddStringAttribute ( OtlpLogs . LogRecord logRecord , string key , string value , int ? maxValueLength , int maxAttributeCount )
258
258
{
259
259
var attributeItem = new KeyValuePair < string , object > ( key , value ) ;
260
- if ( OtlpKeyValueTransformer . Instance . TryTransformTag ( attributeItem , out var result , maxValueLength ) )
260
+ if ( OtlpTagTransformer . Instance . TryTransformTag ( attributeItem , out var result , maxValueLength ) )
261
261
{
262
262
AddAttribute ( logRecord , result , maxAttributeCount ) ;
263
263
}
@@ -267,7 +267,7 @@ private static void AddStringAttribute(OtlpLogs.LogRecord logRecord, string key,
267
267
private static void AddIntAttribute ( OtlpLogs . LogRecord logRecord , string key , int value , int maxAttributeCount )
268
268
{
269
269
var attributeItem = new KeyValuePair < string , object > ( key , value ) ;
270
- if ( OtlpKeyValueTransformer . Instance . TryTransformTag ( attributeItem , out var result ) )
270
+ if ( OtlpTagTransformer . Instance . TryTransformTag ( attributeItem , out var result ) )
271
271
{
272
272
AddAttribute ( logRecord , result , maxAttributeCount ) ;
273
273
}
0 commit comments