Skip to content

Commit

Permalink
Fix more imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalSumislawski committed Apr 3, 2024
1 parent 948b992 commit 4d908e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
* limitations under the License.
*/

import { SpanOptions } from '@opentelemetry/api/build/src/trace/SpanOptions';
import { Span } from '@opentelemetry/api';
import { Span, SpanOptions } from '@opentelemetry/api';
import { TriggerOrigin } from './index';
import { AwsLambdaInstrumentationConfig } from '../types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import {
} from './common';
import { isDefined } from '../utils';
import { Attributes, SpanKind } from '@opentelemetry/api';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { DbSystemValues } from '@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes';
import { DBSYSTEMVALUES_DYNAMODB, SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { TriggerOrigin } from './index';

export const isDynamoDBStreamEvent =
Expand Down Expand Up @@ -60,7 +59,7 @@ function initalizeDynamoDBStreamSpan(
);

const attributes: Attributes = {
[SemanticAttributes.DB_SYSTEM]: DbSystemValues.DYNAMODB,
[SemanticAttributes.DB_SYSTEM]: DBSYSTEMVALUES_DYNAMODB,
};

if (tableNames.length > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import {
Attributes,
Link,
SpanKind,
SpanOptions,
defaultTextMapGetter,
diag,
propagation,
trace,
context as otelContext,
} from '@opentelemetry/api';
import { LambdaTrigger, TriggerSpanInitializerResult } from './common';
import { TriggerOrigin } from './index';
import { SpanOptions } from '@opentelemetry/api/build/src/trace/SpanOptions';
import { context as otelContext } from '@opentelemetry/api/build/src/context-api';
import { defaultTextMapGetter } from '@opentelemetry/api/build/src/propagation/TextMapPropagator';

export const CONTEXT_KEY = '_context';
type EventBridgeDetailWithContext = { [CONTEXT_KEY]?: object } & object;
Expand Down

0 comments on commit 4d908e6

Please sign in to comment.