KEMBAR78
IllegalArgumentException when using Firestore emulator with the latest version, due to OTel changes · Issue #2002 · googleapis/java-firestore · GitHub
Skip to content

IllegalArgumentException when using Firestore emulator with the latest version, due to OTel changes #2002

@icoloma

Description

@icoloma

Description

When using the Firestore emulator with the latest version, an IllegalArgumentException is thrown from FirestoreOptions$EmulatorCredentials.getAuthenticationType(), and EnabledTraceUtil.addSettingsAttributesToCurrentSpan() now calls this method. As a consequence, the emulator starts, but any attempt to run a Query will fail.

Library version

We are using com.google.cloud:libraries-bom:26.53.0 which is downloading com.google.cloud:google-cloud-firestore:3.30.3

Full stacktrace

java.lang.IllegalArgumentException: Not supported
at com.google.cloud.firestore.FirestoreOptions$EmulatorCredentials.getAuthenticationType(FirestoreOptions.java:316)
at com.google.cloud.firestore.telemetry.EnabledTraceUtil.addSettingsAttributesToCurrentSpan(EnabledTraceUtil.java:324)
at com.google.cloud.firestore.telemetry.EnabledTraceUtil.startSpan(EnabledTraceUtil.java:377)
at com.google.cloud.firestore.telemetry.EnabledTraceUtil.startSpan(EnabledTraceUtil.java:45)
at com.google.cloud.firestore.StreamableQuery.get(StreamableQuery.java:111)
at com.google.cloud.firestore.Query.get(Query.java:1737)
[...]

Metadata

Metadata

Labels

api: firestoreIssues related to the googleapis/java-firestore API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions