Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
put the versions in a variable
  • Loading branch information
RulaKhaled committed Jan 9, 2026
commit daa9b7a6bdc4b916129483ec06425ad294a040b0
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {
import { INTEGRATION_NAME } from './constants';
import type { TelemetrySettings, VercelAiIntegration } from './types';

const SUPPORTED_VERSIONS = ['>=3.0.0 <7'];

// List of patched methods
// From: https://sdk.vercel.ai/docs/ai-sdk-core/telemetry#collected-data
const INSTRUMENTED_METHODS = [
Expand Down Expand Up @@ -186,7 +188,7 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
* Initializes the instrumentation by defining the modules to be patched.
*/
public init(): InstrumentationModuleDefinition {
const module = new InstrumentationNodeModuleDefinition('ai', ['>=3.0.0 <7'], this._patch.bind(this));
const module = new InstrumentationNodeModuleDefinition('ai', SUPPORTED_VERSIONS, this._patch.bind(this));
return module;
}

Expand Down
Loading