Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

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

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)
[...]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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