Skip to content

Commit 4fb9c5a

Browse files
authored
refactor(web-common): add incubating semconv to package (open-telemetry#5446)
1 parent 4f91c1d commit 4fb9c5a

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

experimental/packages/web-common/src/SessionLogRecordProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { Context } from '@opentelemetry/api';
1818
import { LogRecord, LogRecordProcessor } from '@opentelemetry/sdk-logs';
19-
import { ATTR_SESSION_ID } from '@opentelemetry/semantic-conventions/incubating';
19+
import { ATTR_SESSION_ID } from './semconv';
2020
import { SessionProvider } from './types/SessionProvider';
2121

2222
/**

experimental/packages/web-common/src/SessionSpanProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
Span,
2121
ReadableSpan,
2222
} from '@opentelemetry/sdk-trace-base';
23-
import { ATTR_SESSION_ID } from '@opentelemetry/semantic-conventions/incubating';
23+
import { ATTR_SESSION_ID } from './semconv';
2424
import { SessionProvider } from './types/SessionProvider';
2525

2626
/**
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* A unique id to identify a session.
19+
*
20+
* @example "00112233-4455-6677-8899-aabbccddeeff"
21+
*/
22+
export const ATTR_SESSION_ID = 'session.id' as const;

0 commit comments

Comments
 (0)