@ogcio/o11y-sdk-node 0.11.4 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,8 @@ export function createGeoAttributesFrom(input) {
|
|
|
44
44
|
input.lat <= 90 &&
|
|
45
45
|
input.lon >= -180 &&
|
|
46
46
|
input.lon <= 180) {
|
|
47
|
-
const
|
|
47
|
+
const precision = input.precision ?? 4;
|
|
48
|
+
const hash = encodeGeohash(input.lat, input.lon, precision);
|
|
48
49
|
if (hash)
|
|
49
50
|
attrs["geo.hash"] = hash;
|
|
50
51
|
}
|
package/dist/sdk-node/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import buildNodeInstrumentation from "./lib/instrumentation.node.js";
|
|
2
|
-
export type { Span, SpanStatus } from "@opentelemetry/api";
|
|
2
|
+
export type { Span, SpanStatus, Attributes, ObservableResult, } from "@opentelemetry/api";
|
|
3
3
|
export { SpanKind, SpanStatusCode, TraceFlags, type Exception, } from "@opentelemetry/api";
|
|
4
4
|
export type * from "./lib/index.js";
|
|
5
5
|
export type { NodeSDK } from "@opentelemetry/sdk-node";
|
package/package.json
CHANGED