diff --git a/packages/web/rollup.config.mjs b/packages/web/rollup.config.mjs index 046a2815..53a1f9dd 100644 --- a/packages/web/rollup.config.mjs +++ b/packages/web/rollup.config.mjs @@ -79,7 +79,7 @@ export default [ context: 'window', }, { - input: 'integration-tests/otel-api-globals.ts', + input: 'src/otel-api-globals.ts', output: { file: 'dist/artifacts/otel-api-globals.js', format: 'iife', diff --git a/packages/web/src/otel-api-globals.ts b/packages/web/src/otel-api-globals.ts new file mode 100644 index 00000000..6f1712d3 --- /dev/null +++ b/packages/web/src/otel-api-globals.ts @@ -0,0 +1,20 @@ +/** + * + * Copyright 2024 Splunk Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +import { trace, context } from '@opentelemetry/api' + +export { trace, context }