Skip to content

[disk-buffering] LogRecord EventName is not serialized #1938

@Doohl

Description

@Doohl

Component(s)

disk-buffering

What happened?

Description

EventName was introduced recently in opentelemetry-specification (open-telemetry/opentelemetry-specification#4260) to Log and Event record models.

However, EventName hasn't yet been added to the LogRecordDataMapper logic.

Steps to Reproduce

I encountered this issue testing opentelemetry-android. You can repro this issue by:

  1. Checking out opentelemetry-android 0.11.0
  2. Running the demo-app
  3. Observing the cache log files (or with OTEL collector) a lack of EventName in Log Records

Expected Result

The raw delimited protobuf items should contain EventName context.

Actual Result

The raw delimited protobuf items do not contain EventName context.

Component version

1.46.0

Log output

==== RAW LOG RECORD PROTOBUF ====



��
��
��
�
�device.manufacturer��
�Google
/
�device.model.identifier��
�sdk_gphone64_arm64
)
�device.model.name��
�sdk_gphone64_arm64
K
�os.description�9
7Android Version 16 (Build BP22.250221.010 API level 36)
�
�os.name�	
�Android
�
�os.type��
�linux
�

os.version��
�16
*
�rum.sdk.version��
�0.11.0-alpha-SNAPSHOT
&
service.name��
�OpenTelemetryDemoApp
 
�telemetry.sdk.language��
�java
%
�telemetry.sdk.name��

opentelemetry
!
�telemetry.sdk.version��
�1.49.0���
�
�otel.demo.app.navigation���Y�E�=��E�2�
�network.carrier.icc��
�us2�
�network.carrier.mcc��
�3102�
�network.carrier.mnc��
�2602'
�network.carrier.name��

T-Mobile - US2!
�network.connection.type��
�wifi2�

product.id�

1YMWWN1N4O2&
�screen.name��
�AstronomyShopActivity20

session.id�"
 4ef5b0e85f023744f242bc914bb74c332�
�toolkit��
�jetpack composeJ 00000000000000000000000000000000R�0000000000000000��
��
��
�
�device.manufacturer��
�Google
/
�device.model.identifier��
�sdk_gphone64_arm64
)
�device.model.name��
�sdk_gphone64_arm64
K
�os.description�9
7Android Version 16 (Build BP22.250221.010 API level 36)
�
�os.name�	
�Android
�
�os.type��
�linux
�

os.version��
�16
*
�rum.sdk.version��
�0.11.0-alpha-SNAPSHOT
&
service.name��
�OpenTelemetryDemoApp
 
�telemetry.sdk.language��
�java
%
�telemetry.sdk.name��

opentelemetry
!
�telemetry.sdk.version��
�1.49.0���
�
�otel.demo.app.navigation���Y��R���E�2�
�network.carrier.icc��
�us2�
�network.carrier.mcc��
�3102�
�network.carrier.mnc��
�2602'
�network.carrier.name��

T-Mobile - US2!
�network.connection.type��
�wifi2�

product.id�

OLJCESPC7Z2&
�screen.name��
�AstronomyShopActivity20

session.id�"
 4ef5b0e85f023744f242bc914bb74c332�
�toolkit��
�jetpack composeJ 00000000000000000000000000000000R�0000000000000000��
��
��
�
�device.manufacturer��
�Google
/
�device.model.identifier��
�sdk_gphone64_arm64
)
�device.model.name��
�sdk_gphone64_arm64
K
�os.description�9
7Android Version 16 (Build BP22.250221.010 API level 36)
�
�os.name�	
�Android
�
�os.type��
�linux
�

os.version��
�16
*
�rum.sdk.version��
�0.11.0-alpha-SNAPSHOT
&
service.name��
�OpenTelemetryDemoApp
 
�telemetry.sdk.language��
�java
%
�telemetry.sdk.name��

opentelemetry
!
�telemetry.sdk.version��
�1.49.0���
�
�io.opentelemetry.crash���Y��A���E�2�
�battery.percent�	!������Y@29
�exception.message�$
"Failure from thread crash-thread-02��
�exception.stacktrace���
��java.lang.IllegalStateException: Failure from thread crash-thread-0
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt.multiThreadCrashing$lambda$32(ProductDetails.kt:178)
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt.$r8$lambda$FSCPPECHvRiu1mUij8Jj1chkNUI(Unknown Source:0)
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at java.lang.Thread.run(Thread.java:1119)
23
�exception.type�!
�java.lang.IllegalStateException2�
	heap.free�������2�
�network.carrier.icc��
�us2�
�network.carrier.mcc��
�3102�
�network.carrier.mnc��
�2602'
�network.carrier.name��

T-Mobile - US2!
�network.connection.type��
�wifi2&
�screen.name��
�AstronomyShopActivity20

session.id�"
 4ef5b0e85f023744f242bc914bb74c332�
storage.free��������2�
	thread.id���F2�
�thread.name��
�crash-thread-02�
�toolkit��
�jetpack composeJ 00000000000000000000000000000000R�0000000000000000���Y@�P���E�2�
�battery.percent�	!������Y@29
�exception.message�$
"Failure from thread crash-thread-22��
�exception.stacktrace���
��java.lang.IllegalStateException: Failure from thread crash-thread-2
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt.multiThreadCrashing$lambda$32(ProductDetails.kt:178)
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt.$r8$lambda$FSCPPECHvRiu1mUij8Jj1chkNUI(Unknown Source:0)
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at java.lang.Thread.run(Thread.java:1119)
23
�exception.type�!
�java.lang.IllegalStateException2�
	heap.free�������2�
�network.carrier.icc��
�us2�
�network.carrier.mcc��
�3102�
�network.carrier.mnc��
�2602'
�network.carrier.name��

T-Mobile - US2!
�network.connection.type��
�wifi2&
�screen.name��
�AstronomyShopActivity20

session.id�"
 4ef5b0e85f023744f242bc914bb74c332�
storage.free��������2�
	thread.id���H2�
�thread.name��
�crash-thread-22�
�toolkit��
�jetpack composeJ 00000000000000000000000000000000R�0000000000000000���Y@�P���E�2�
�battery.percent�	!������Y@29
�exception.message�$
"Failure from thread crash-thread-12��
�exception.stacktrace���
��java.lang.IllegalStateException: Failure from thread crash-thread-1
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt.multiThreadCrashing$lambda$32(ProductDetails.kt:178)
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt.$r8$lambda$FSCPPECHvRiu1mUij8Jj1chkNUI(Unknown Source:0)
	at io.opentelemetry.android.demo.shop.ui.products.ProductDetailsKt$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at java.lang.Thread.run(Thread.java:1119)
23
�exception.type�!
�java.lang.IllegalStateException2�
	heap.free�������2�
�network.carrier.icc��
�us2�
�network.carrier.mcc��
�3102�
�network.carrier.mnc��
�2602'
�network.carrier.name��

T-Mobile - US2!
�network.connection.type��
�wifi2&
�screen.name��
�AstronomyShopActivity20

session.id�"
 4ef5b0e85f023744f242bc914bb74c332�
storage.free��������2�
	thread.id���G2�
�thread.name��
�crash-thread-12�
�toolkit��
�jetpack composeJ 00000000000000000000000000000000R�0000000000000000

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions