File tree Expand file tree Collapse file tree
packages/server-utils/src/integrations/tracing-channel/aws-sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export const DB_SYSTEM_VALUE_DYNAMODB = 'dynamodb';
1515export const ATTR_MESSAGING_DESTINATION_KIND = 'messaging.destination_kind' ;
1616export const MESSAGING_DESTINATION_KIND_VALUE_TOPIC = 'topic' ;
1717
18- // Bedrock (gen_ai)
19- export const ATTR_GEN_AI_REQUEST_STOP_SEQUENCES = 'gen_ai.request.stop_sequences' ;
18+ // Bedrock (gen_ai) attribute values (not keys, so not covered by conventions)
2019export const GEN_AI_OPERATION_NAME_VALUE_CHAT = 'chat' ;
2120export const GEN_AI_SYSTEM_VALUE_AWS_BEDROCK = 'aws.bedrock' ;
Original file line number Diff line number Diff line change 44 GEN_AI_OPERATION_NAME ,
55 GEN_AI_REQUEST_MAX_TOKENS ,
66 GEN_AI_REQUEST_MODEL ,
7+ GEN_AI_REQUEST_STOP_SEQUENCES as ATTR_GEN_AI_REQUEST_STOP_SEQUENCES ,
78 GEN_AI_REQUEST_TEMPERATURE ,
89 GEN_AI_REQUEST_TOP_P ,
910 GEN_AI_RESPONSE_FINISH_REASONS ,
@@ -12,11 +13,7 @@ import {
1213 GEN_AI_USAGE_OUTPUT_TOKENS ,
1314} from '@sentry/conventions/attributes' ;
1415import { DEBUG_BUILD } from '../../../../debug-build' ;
15- import {
16- ATTR_GEN_AI_REQUEST_STOP_SEQUENCES ,
17- GEN_AI_OPERATION_NAME_VALUE_CHAT ,
18- GEN_AI_SYSTEM_VALUE_AWS_BEDROCK ,
19- } from '../constants' ;
16+ import { GEN_AI_OPERATION_NAME_VALUE_CHAT , GEN_AI_SYSTEM_VALUE_AWS_BEDROCK } from '../constants' ;
2017import type { NormalizedRequest , NormalizedResponse } from '../types' ;
2118import type { RequestMetadata , ServiceExtension } from './ServiceExtension' ;
2219
You can’t perform that action at this time.
0 commit comments