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
11 changes: 11 additions & 0 deletions packages/opentelemetry-instrumentation-anthropic/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
exclude =
.git,
__pycache__,
build,
dist,
.tox,
venv,
.venv,
.pytest_cache
max-line-length = 120
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.5
3 changes: 3 additions & 0 deletions packages/opentelemetry-instrumentation-anthropic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# opentelemetry-instrumentation-anthropic

Project description here.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""OpenTelemetry Anthropic instrumentation"""
520 changes: 520 additions & 0 deletions packages/opentelemetry-instrumentation-anthropic/poetry.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/opentelemetry-instrumentation-anthropic/poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[virtualenvs]
in-project = true
68 changes: 68 additions & 0 deletions packages/opentelemetry-instrumentation-anthropic/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"name": "opentelemetry-instrumentation-anthropic",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "packages/opentelemetry-instrumentation-anthropic/opentelemetry_instrumentation_anthropic",
"targets": {
"lock": {
"executor": "@nxlv/python:run-commands",
"options": {
"command": "poetry lock --no-update",
"cwd": "packages/opentelemetry-instrumentation-anthropic"
}
},
"add": {
"executor": "@nxlv/python:add",
"options": {}
},
"update": {
"executor": "@nxlv/python:update",
"options": {}
},
"remove": {
"executor": "@nxlv/python:remove",
"options": {}
},
"build": {
"executor": "@nxlv/python:build",
"outputs": ["{projectRoot}/dist"],
"options": {
"outputPath": "packages/opentelemetry-instrumentation-anthropic/dist",
"publish": false,
"lockedVersions": true,
"bundleLocalDependencies": true
}
},
"install": {
"executor": "@nxlv/python:install",
"options": {
"silent": false,
"args": "",
"cacheDir": ".cache/pypoetry",
"verbose": false,
"debug": false
}
},
"lint": {
"executor": "@nxlv/python:flake8",
"outputs": [
"{workspaceRoot}/reports/packages/opentelemetry-instrumentation-anthropic/pylint.txt"
],
"options": {
"outputFile": "reports/packages/opentelemetry-instrumentation-anthropic/pylint.txt"
}
},
"test": {
"executor": "@nxlv/python:run-commands",
"outputs": [
"{workspaceRoot}/reports/packages/opentelemetry-instrumentation-anthropic/unittests",
"{workspaceRoot}/coverage/packages/opentelemetry-instrumentation-anthropic"
],
"options": {
"command": "poetry run pytest tests/",
"cwd": "packages/opentelemetry-instrumentation-anthropic"
}
}
},
"tags": []
}
43 changes: 43 additions & 0 deletions packages/opentelemetry-instrumentation-anthropic/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[tool.coverage.run]
branch = true
source = [ "opentelemetry/instrumentation/anthropic" ]

[tool.coverage.report]
exclude_lines = ['if TYPE_CHECKING:']
show_missing = true

[tool.pytest.ini_options]
addopts = "--cov --cov-report html:'../../coverage/packages/opentelemetry-instrumentation-anthropic/html' --cov-report xml:'../../coverage/packages/opentelemetry-instrumentation-anthropic/coverage.xml' --html='../../reports/packages/opentelemetry-instrumentation-anthropic/unittests/html/index.html' --junitxml='../../reports/packages/opentelemetry-instrumentation-anthropic/unittests/junit.xml'"

[tool.poetry]
name = "opentelemetry-instrumentation-anthropic"
version = "0.0.1"
description = "OpenTelemetry Anthropic instrumentation"
authors = [
"Gal Kleinman <gal@traceloop.com>",
"Nir Gazit <nir@traceloop.com>",
"Tomer Friedman <tomer@traceloop.com>"
]
license = "Apache-2.0"
readme = "README.md"

[[tool.poetry.packages]]
include = "opentelemetry/instrumentation/anthropic"

[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
opentelemetry-api = "^1.20.0"
opentelemetry-instrumentation = "^0.40b0"
opentelemetry-semantic-conventions-llm = "^0.0.1"

[tool.poetry.group.dev.dependencies]
autopep8 = "2.0.4"
flake8 = "6.1.0"
pytest = "7.4.1"
pytest-sugar = "0.9.7"
pytest-cov = "4.1.0"
pytest-html = "4.0.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""unit tests."""
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Unit tests configuration module."""

pytest_plugins = []
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""Hello unit test module."""

from opentelemetry_instrumentation_anthropic.hello import hello


def test_hello():
"""Test the hello function."""
assert hello() == "Hello opentelemetry-instrumentation-anthropic"
11 changes: 11 additions & 0 deletions packages/opentelemetry-instrumentation-bedrock/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
exclude =
.git,
__pycache__,
build,
dist,
.tox,
venv,
.venv,
.pytest_cache
max-line-length = 120
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.5
3 changes: 3 additions & 0 deletions packages/opentelemetry-instrumentation-bedrock/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# opentelemetry-instrumentation-bedrock

Project description here.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""OpenTelemetry Bedrock instrumentation"""
Loading