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

Commit b7d7b4a

Browse files
committed
fix: handle longs in ObsUtils
1 parent ba55a34 commit b7d7b4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gax-java/gax/src/main/java/com/google/api/gax/tracing/ObservabilityUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ static Attributes toOtelAttributes(Map<String, Object> attributes) {
127127
attributesBuilder.put(k, (String) v);
128128
} else if (v instanceof Integer) {
129129
attributesBuilder.put(k, (long) (Integer) v);
130+
} else if (v instanceof Long) {
131+
attributesBuilder.put(k, (Long) v);
130132
}
131133
});
132134
return attributesBuilder.build();

0 commit comments

Comments
 (0)