@traceloop/instrumentation-anthropic 0.23.0 → 0.25.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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var aiSemanticConventions = require('@traceloop/ai-semantic-conventions');
|
|
|
7
7
|
var instrumentationUtils = require('@traceloop/instrumentation-utils');
|
|
8
8
|
var incubating = require('@opentelemetry/semantic-conventions/incubating');
|
|
9
9
|
|
|
10
|
-
var version = "0.
|
|
10
|
+
var version = "0.25.0";
|
|
11
11
|
|
|
12
12
|
// Mapping of Anthropic-specific stop reasons to standardized finish reasons
|
|
13
13
|
const anthropicFinishReasonMap = {
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { FinishReasons, SpanAttributes, CONTEXT_KEY_ALLOW_TRACE_CONTENT } from '
|
|
|
5
5
|
import { formatSystemInstructions, formatInputMessages, mapAnthropicContentBlock, formatInputMessagesFromPrompt, formatOutputMessage } from '@traceloop/instrumentation-utils';
|
|
6
6
|
import { GEN_AI_OPERATION_NAME_VALUE_TEXT_COMPLETION, GEN_AI_OPERATION_NAME_VALUE_CHAT, GEN_AI_PROVIDER_NAME_VALUE_ANTHROPIC, ATTR_GEN_AI_REQUEST_MODEL, ATTR_GEN_AI_REQUEST_TEMPERATURE, ATTR_GEN_AI_REQUEST_TOP_P, ATTR_GEN_AI_REQUEST_TOP_K, ATTR_GEN_AI_REQUEST_MAX_TOKENS, ATTR_GEN_AI_SYSTEM_INSTRUCTIONS, ATTR_GEN_AI_INPUT_MESSAGES, ATTR_GEN_AI_RESPONSE_MODEL, ATTR_GEN_AI_RESPONSE_FINISH_REASONS, ATTR_GEN_AI_USAGE_OUTPUT_TOKENS, ATTR_GEN_AI_USAGE_INPUT_TOKENS, ATTR_GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS, ATTR_GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, ATTR_GEN_AI_OUTPUT_MESSAGES, ATTR_GEN_AI_OPERATION_NAME, ATTR_GEN_AI_PROVIDER_NAME } from '@opentelemetry/semantic-conventions/incubating';
|
|
7
7
|
|
|
8
|
-
var version = "0.
|
|
8
|
+
var version = "0.25.0";
|
|
9
9
|
|
|
10
10
|
// Mapping of Anthropic-specific stop reasons to standardized finish reasons
|
|
11
11
|
const anthropicFinishReasonMap = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@traceloop/instrumentation-anthropic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Anthropic Instrumentaion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@opentelemetry/core": "^2.0.1",
|
|
43
43
|
"@opentelemetry/instrumentation": "^0.203.0",
|
|
44
44
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
45
|
-
"@traceloop/ai-semantic-conventions": "0.
|
|
46
|
-
"@traceloop/instrumentation-utils": "0.
|
|
45
|
+
"@traceloop/ai-semantic-conventions": "0.25.0",
|
|
46
|
+
"@traceloop/instrumentation-utils": "0.25.0",
|
|
47
47
|
"tslib": "^2.8.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"ts-mocha": "^11.1.0"
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-anthropic",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "49a154433f3e5b4c21bbd5cba0d60a7c54f1ef0c"
|
|
63
63
|
}
|