truss 0.11.0__py3-none-any.whl → 0.11.1rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of truss might be problematic. Click here for more details.

@@ -6,7 +6,6 @@ import pathlib
6
6
  import time
7
7
  from typing import Iterator, List, Optional, Sequence
8
8
 
9
- import opentelemetry.exporter.otlp.proto.http.trace_exporter as oltp_exporter
10
9
  import opentelemetry.sdk.resources as resources
11
10
  import opentelemetry.sdk.trace as sdk_trace
12
11
  import opentelemetry.sdk.trace.export as trace_export
@@ -16,7 +15,6 @@ from shared import secrets_resolver
16
15
  logger = logging.getLogger(__name__)
17
16
 
18
17
  ATTR_NAME_DURATION = "duration_sec"
19
- OTEL_EXPORTER_OTLP_ENDPOINT = "OTEL_EXPORTER_OTLP_ENDPOINT"
20
18
  # Writing trace data to a file is only intended for testing / debugging.
21
19
  OTEL_TRACING_NDJSON_FILE = "OTEL_TRACING_NDJSON_FILE"
22
20
  # Exporting trace data to a public honeycomb instance (not our cluster collector)
@@ -67,13 +65,6 @@ def get_truss_tracer(secrets: secrets_resolver.Secrets, config) -> trace.Tracer:
67
65
  return _truss_tracer
68
66
 
69
67
  span_processors: List[sdk_trace.SpanProcessor] = []
70
- if otlp_endpoint := os.getenv(OTEL_EXPORTER_OTLP_ENDPOINT):
71
- if enable_tracing_data:
72
- logger.info(f"Exporting trace data to {OTEL_EXPORTER_OTLP_ENDPOINT}.")
73
- otlp_exporter = oltp_exporter.OTLPSpanExporter(endpoint=otlp_endpoint)
74
- otlp_processor = sdk_trace.export.BatchSpanProcessor(otlp_exporter)
75
- span_processors.append(otlp_processor)
76
-
77
68
  if tracing_log_file := os.getenv(OTEL_TRACING_NDJSON_FILE):
78
69
  if enable_tracing_data:
79
70
  logger.info(f"Exporting trace data to file `{tracing_log_file}`.")
@@ -81,21 +72,6 @@ def get_truss_tracer(secrets: secrets_resolver.Secrets, config) -> trace.Tracer:
81
72
  file_processor = sdk_trace.export.SimpleSpanProcessor(json_file_exporter)
82
73
  span_processors.append(file_processor)
83
74
 
84
- if (
85
- honeycomb_dataset := os.getenv(HONEYCOMB_DATASET)
86
- ) and HONEYCOMB_API_KEY in secrets:
87
- honeycomb_api_key = secrets[HONEYCOMB_API_KEY]
88
- logger.info("Exporting trace data to honeycomb.")
89
- honeycomb_exporter = oltp_exporter.OTLPSpanExporter(
90
- endpoint="https://api.honeycomb.io/v1/traces",
91
- headers={
92
- "x-honeycomb-team": honeycomb_api_key,
93
- "x-honeycomb-dataset": honeycomb_dataset,
94
- },
95
- )
96
- honeycomb_processor = sdk_trace.export.BatchSpanProcessor(honeycomb_exporter)
97
- span_processors.append(honeycomb_processor)
98
-
99
75
  if span_processors and enable_tracing_data:
100
76
  logger.info("Instantiating truss tracer.")
101
77
  resource = resources.Resource.create({resources.SERVICE_NAME: "truss-server"})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truss
3
- Version: 0.11.0
3
+ Version: 0.11.1rc2
4
4
  Summary: A seamless bridge from model development to model delivery
5
5
  Project-URL: Repository, https://github.com/basetenlabs/truss
6
6
  Project-URL: Homepage, https://truss.baseten.co
@@ -103,7 +103,7 @@ truss/templates/server/common/errors.py,sha256=qWeZlmNI8ZGbZbOIp_mtS6IKvUFIzhj3Q
103
103
  truss/templates/server/common/patches.py,sha256=uEOzvDnXsHOkTSa8zygGYuR4GHhrFNVHNQc5peJcwvo,1393
104
104
  truss/templates/server/common/retry.py,sha256=dtz6yvwLoY0i55FnxECz57zEOKjAhGMYvvM-k9jiR9c,624
105
105
  truss/templates/server/common/schema.py,sha256=WLFtVyEKmk4whg5_gk6Gt1vOD6wM5fWKLb4zNuD0bkw,6042
106
- truss/templates/server/common/tracing.py,sha256=XSTXNoRtV8vXwveJoX3H32go0JKnLmznZ2TtrVzIe4M,5967
106
+ truss/templates/server/common/tracing.py,sha256=TDokphTO0O-b0xZLkkDMU6Z_JIsaZA0aimL6UIQB5eI,4808
107
107
  truss/templates/server/common/patches/whisper/patch.py,sha256=kDECQ-wmEpeAZFhUTQP457ofueeMsm7DgNy9tqinhJQ,2383
108
108
  truss/templates/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  truss/templates/shared/dynamic_config_resolver.py,sha256=75s42NFhQI5jL7BqlJH_UkuQS7ptbtFh13f2nh6X5Wo,920
@@ -364,8 +364,8 @@ truss_train/definitions.py,sha256=V985HhY4rdXL10DZxpFEpze9ScxzWErMht4WwaPknGU,67
364
364
  truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,3074
365
365
  truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
366
366
  truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
367
- truss-0.11.0.dist-info/METADATA,sha256=xoZ_Knb3pqkfrWKv6bNX21VdkYMWHZ3AWTig-w395Es,6669
368
- truss-0.11.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
369
- truss-0.11.0.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
370
- truss-0.11.0.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
371
- truss-0.11.0.dist-info/RECORD,,
367
+ truss-0.11.1rc2.dist-info/METADATA,sha256=-QNAojZwEkUwM3B6Jo9KIbVMpBstsTCKx-qR1S_MFJM,6672
368
+ truss-0.11.1rc2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
369
+ truss-0.11.1rc2.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
370
+ truss-0.11.1rc2.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
371
+ truss-0.11.1rc2.dist-info/RECORD,,