Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #113 from cisco-open/SDK-741-easy-migration-depend…
Browse files Browse the repository at this point in the history
…ency-injection

feat(easy-mig): add pants to project
  • Loading branch information
nemoshlag authored Aug 1, 2022
2 parents b783b62 + faef3ae commit 894f625
Show file tree
Hide file tree
Showing 28 changed files with 868 additions and 131 deletions.
Empty file added .pids/.lock.pantsd
Empty file.
63 changes: 63 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
python_requirements(
name="root",
)

python_requirement(
name="opentelemetry api",
requirements=["opentelemetry-api>=1.10.0"],
modules=["opentelemetry"],
)

python_requirement(
name="opentelemetry sdk",
requirements=["opentelemetry-sdk>=1.10.0"],
modules=["opentelemetry.sdk"],
)

python_requirement(
name="opentelemetry grpc exporter",
requirements=["opentelemetry-exporter-otlp-proto-grpc>=1.10.0"],
modules=["opentelemetry.exporter.otlp.proto.grpc"],
)

python_requirement(
name="opentelemetry http exporter",
requirements=["opentelemetry-exporter-otlp-proto-http>=1.10.0"],
modules=["opentelemetry.exporter.otlp.proto.http"],
)

python_requirement(
name="opentelemetry instrumentation requests",
requirements=["opentelemetry-instrumentation-requests>=0.29b"],
modules=["opentelemetry.instrumentation.requests"],
)

python_requirement(
name="opentelemetry instrumentation aiohttp",
requirements=["opentelemetry-instrumentation-aiohttp_client>=0.29b"],
modules=["opentelemetry.instrumentation.aiohttp_client"],
)

python_requirement(
name="opentelemetry instrumentation grpc",
requirements=["opentelemetry-instrumentation-grpc>=0.29b"],
modules=["opentelemetry.instrumentation.grpc"],
)

python_requirement(
name="opentelemetry instrumentation pymongo",
requirements=["opentelemetry-instrumentation-pymongo>=0.29b"],
modules=["opentelemetry.instrumentation.pymongo"],
)

python_requirement(
name="opentelemetry test utils",
requirements=["opentelemetry-test-utils>=0.29b"],
modules=["opentelemetry.test"],
)

python_requirement(
name="grpc",
requirements=["grpcio>=1.46.3"],
modules=["grpc"],
)
1 change: 1 addition & 0 deletions cisco_telescope/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
3 changes: 3 additions & 0 deletions cisco_telescope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
import os

os.environ.setdefault("PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION", "python")
1 change: 1 addition & 0 deletions cisco_telescope/cmd/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
1 change: 0 additions & 1 deletion cisco_telescope/exporter_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from . import options
from . import consts

Expand Down
1 change: 1 addition & 0 deletions cisco_telescope/instrumentations/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
1 change: 1 addition & 0 deletions cisco_telescope/instrumentations/aiohttp/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
1 change: 1 addition & 0 deletions cisco_telescope/instrumentations/grpc/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
10 changes: 5 additions & 5 deletions cisco_telescope/instrumentations/instrumentation_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"""

import logging
from cisco_telescope.instrumentations.requests import RequestsInstrumentorWrapper
from cisco_telescope.instrumentations.aiohttp import AiohttpInstrumentorWrapper
from cisco_telescope.instrumentations.pymongo import PymongoInstrumentorWrapper
from cisco_telescope.instrumentations.grpc import GrpcInstrumentorServerWrapper
from cisco_telescope.instrumentations.grpc import GrpcInstrumentorClientWrapper
from .requests import RequestsInstrumentorWrapper
from .aiohttp import AiohttpInstrumentorWrapper
from .pymongo import PymongoInstrumentorWrapper
from .grpc import GrpcInstrumentorServerWrapper
from .grpc import GrpcInstrumentorClientWrapper
from .. import consts, options


Expand Down
1 change: 1 addition & 0 deletions cisco_telescope/instrumentations/pymongo/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
1 change: 1 addition & 0 deletions cisco_telescope/instrumentations/requests/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
Loading

0 comments on commit 894f625

Please sign in to comment.