From b465fc47b4ce3098768d4d45ab78f968b10f6897 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 12 Dec 2024 11:02:42 -0800 Subject: [PATCH] release instrumentation-openai 0.4.0 (#474) Fix the release workflow to install deps and compile before published, otherwise a mostly empty package is published. --- .github/workflows/release-instrumentation-openai.yml | 6 ++++++ packages/instrumentation-openai/CHANGELOG.md | 6 ++++++ packages/instrumentation-openai/package-lock.json | 4 ++-- packages/instrumentation-openai/package.json | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-instrumentation-openai.yml b/.github/workflows/release-instrumentation-openai.yml index 96131427..eef8d5a2 100644 --- a/.github/workflows/release-instrumentation-openai.yml +++ b/.github/workflows/release-instrumentation-openai.yml @@ -29,6 +29,12 @@ jobs: node-version: 'v18.20.4' registry-url: 'https://registry.npmjs.org' + - run: npm ci + working-directory: ${{ env.PKGDIR }} + + - run: npm run compile + working-directory: ${{ env.PKGDIR }} + - run: npm publish working-directory: ${{ env.PKGDIR }} env: diff --git a/packages/instrumentation-openai/CHANGELOG.md b/packages/instrumentation-openai/CHANGELOG.md index 5d025212..de84ea5f 100644 --- a/packages/instrumentation-openai/CHANGELOG.md +++ b/packages/instrumentation-openai/CHANGELOG.md @@ -1,7 +1,13 @@ # @elastic/opentelemetry-instrumentation-openai Changelog +## v0.4.0 + +- Fix the release workflow. + ## v0.3.0 +(Broken release. Use v0.4.0 or later.) + - Based on GenAI semantic conventions 1.29. - Instrumentation of chat completion, including streaming and tool calls. - Instrumentation of [embeddings creation](https://platform.openai.com/docs/api-reference/embeddings/create). diff --git a/packages/instrumentation-openai/package-lock.json b/packages/instrumentation-openai/package-lock.json index bf9bb5be..bc2d957f 100644 --- a/packages/instrumentation-openai/package-lock.json +++ b/packages/instrumentation-openai/package-lock.json @@ -1,12 +1,12 @@ { "name": "@elastic/opentelemetry-instrumentation-openai", - "version": "0.3.0", + "version": "0.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@elastic/opentelemetry-instrumentation-openai", - "version": "0.3.0", + "version": "0.4.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api-logs": "^0.56.0", diff --git a/packages/instrumentation-openai/package.json b/packages/instrumentation-openai/package.json index a3eb83ee..6c96cc72 100644 --- a/packages/instrumentation-openai/package.json +++ b/packages/instrumentation-openai/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/opentelemetry-instrumentation-openai", - "version": "0.3.0", + "version": "0.4.0", "description": "OpenTelemetry instrumentation for the `openai` OpenAI client library", "type": "commonjs", "publishConfig": {