Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [0.1.0] - Unreleased

### Features Added
- Add langchain isntrumentation.([#10](https://github.com/microsoft/opentelemetry-distro-javascript/pull/10))

### Breaking Changes

Expand Down
243 changes: 243 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
},
"devDependencies": {
"@azure/functions": "^4.9.0",
"@langchain/core": "^1.1.39",
"@types/node": "^22.0.0",
Comment thread
hectorhdzg marked this conversation as resolved.
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
Expand Down
2 changes: 2 additions & 0 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ These sample programs show how to use the `@microsoft/opentelemetry` distributio
| [otlpExporter.ts][otlpexporter] | Demonstrates how to enable the OTLP exporter alongside Azure Monitor to send telemetry to two locations. |
| [redactQueryStrings.ts][redactquerystrings] | Demonstrates how to redact URL query strings from telemetry to protect sensitive information. |
| [sampling.ts][sampling] | Demonstrates how to enable sampling to reduce data ingestion volume and control costs. |
| [langchainInstrumentation.ts][langchaininstrumentation] | Demonstrates how to enable LangChain instrumentation to trace GenAI operations. |

## Prerequisites

Expand Down Expand Up @@ -70,3 +71,4 @@ APPLICATIONINSIGHTS_CONNECTION_STRING="<your connection string>" node dist/basic
[otlpexporter]: https://github.com/Azure/opentelemetry-distro-javascript/blob/main/samples/src/otlpExporter.ts
[redactquerystrings]: https://github.com/Azure/opentelemetry-distro-javascript/blob/main/samples/src/redactQueryStrings.ts
[sampling]: https://github.com/Azure/opentelemetry-distro-javascript/blob/main/samples/src/sampling.ts
[langchaininstrumentation]: https://github.com/Azure/opentelemetry-distro-javascript/blob/main/samples/src/langchainInstrumentation.ts
4 changes: 3 additions & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"@opentelemetry/resources": "^2.2.0",
"@opentelemetry/semantic-conventions": "^1.38.0",
"@opentelemetry/sdk-trace-base": "^2.2.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.208.0"
"@opentelemetry/exporter-trace-otlp-http": "^0.208.0",
"@langchain/openai": "^1.4.4",
"@langchain/core": "^1.1.39"
},
"devDependencies": {
"@types/node": "^20.0.0",
Expand Down
Loading
Loading