beamlit 0.0.34rc56__py3-none-any.whl → 0.0.34rc58__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.
@@ -15,9 +15,6 @@ from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import (
15
15
  )
16
16
  from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
17
17
  from opentelemetry.instrumentation.httpx import HTTPXClientInstrumentor
18
- from opentelemetry.instrumentation.system_metrics import (
19
- SystemMetricsInstrumentor,
20
- )
21
18
  from opentelemetry.metrics import NoOpMeterProvider
22
19
  from opentelemetry.sdk._logs import LoggerProvider, LoggingHandler
23
20
  from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
@@ -143,7 +140,6 @@ def instrument_app(app: FastAPI):
143
140
  # Only instrument the app when OpenTelemetry is enabled
144
141
  FastAPIInstrumentor.instrument_app(app)
145
142
  HTTPXClientInstrumentor().instrument()
146
- SystemMetricsInstrumentor().instrument()
147
143
 
148
144
 
149
145
  def shutdown_instrumentation():
beamlit/deploy/deploy.py CHANGED
@@ -126,14 +126,14 @@ metadata:
126
126
  displayName: {agent.metadata.display_name or agent.metadata.name}
127
127
  environment: {settings.environment}
128
128
  workspace: {settings.workspace}
129
+ labels:
130
+ x-beamlit-auto-generated: "true"
129
131
  spec:
130
132
  enabled: true
131
133
  policies: [{", ".join(agent.spec.policies or [])}]
132
134
  functions: [{", ".join([f"{slugify(function.metadata.name)}" for (_, function) in functions])}]
133
135
  agentChain: {format_agent_chain(agent.spec.agent_chain)}
134
136
  model: {agent.spec.model}
135
- runtime:
136
- image: {agent.spec.runtime.image}
137
137
  """
138
138
  if agent.spec.description:
139
139
  template += f""" description: |
@@ -159,14 +159,14 @@ metadata:
159
159
  name: {slugify(function.metadata.name)}
160
160
  displayName: {function.metadata.display_name or function.metadata.name}
161
161
  environment: {settings.environment}
162
+ labels:
163
+ x-beamlit-auto-generated: "true"
162
164
  spec:
163
165
  enabled: true
164
166
  policies: [{", ".join(function.spec.policies or [])}]
165
167
  description: |
166
168
  {function.spec.description}
167
169
  parameters: {format_parameters(function.spec.parameters)}
168
- runtime:
169
- image: {function.spec.runtime.image}
170
170
  """
171
171
 
172
172
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beamlit
3
- Version: 0.0.34rc56
3
+ Version: 0.0.34rc58
4
4
  Summary: Add your description here
5
5
  Author-email: cploujoux <ch.ploujoux@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -130,14 +130,14 @@ beamlit/authentication/credentials.py,sha256=p_1xenabCbQuRz7BiFk7oTK4uCxAt_zoyku
130
130
  beamlit/authentication/device_mode.py,sha256=tmr22gllKOZwBRub_QjF5pYa425x-nE8tQNpZ_EGR6g,3644
131
131
  beamlit/common/__init__.py,sha256=saX5X3hRCJ9erSlXuSkZ2VGgquvpgdcofAU_9sM4bCE,354
132
132
  beamlit/common/error.py,sha256=f9oJDFxhoHK-vpjxBgEp0NwWIk0N_THPemUI7uQxVzU,270
133
- beamlit/common/instrumentation.py,sha256=8aR5XLLq22_vScJlDqQVxvqFG-0K4ymqJ98DUp7Lb74,5471
133
+ beamlit/common/instrumentation.py,sha256=GpM7dfAWXDD7h9X4WnI5k-pE2tBHSN08_KN9NHLRugo,5334
134
134
  beamlit/common/logger.py,sha256=nN_dSOl4bs13QU3Rod-w3e3jYOnlSrHx3_bs-ACY6Aw,1115
135
135
  beamlit/common/secrets.py,sha256=sid81bOe3LflkMKDHwBsBs9nIju8bp5-v9qU9gkyNMc,212
136
136
  beamlit/common/settings.py,sha256=b2rvby-ufG3M0AB1ReoWFM-1EzF1LaE-gbokO9HvQDI,3810
137
137
  beamlit/common/slugify.py,sha256=nR29r37IdWS2i44ZC6ZsXRgqKPYmvMGtFQ7BuIQUTlc,90
138
138
  beamlit/common/utils.py,sha256=jouz5igBvT37Xn_e94-foCHyQczVim-UzVcoIF6RWJ4,657
139
139
  beamlit/deploy/__init__.py,sha256=GS7l7Jtm2yKs7iNLKcfjYO-rAhUzggQ3xiYSf3oxLBY,91
140
- beamlit/deploy/deploy.py,sha256=YKY1iN0ZofQr_n9efvDJ5pK9HpyLZO9wyHmh8W9PAaE,9889
140
+ beamlit/deploy/deploy.py,sha256=FyDqSYpm_YKG8IapaFhI0EN5m71d7wkWLjfBuitxsOU,9884
141
141
  beamlit/deploy/format.py,sha256=PJ8kU7Y1pwiS3tqqyvFaag9LO3jju-4ua574163VPk4,1820
142
142
  beamlit/deploy/parser.py,sha256=Ga0poCZkoRnuTw082QnTcNGCBJncoRAnVsn8-1FsaJE,6907
143
143
  beamlit/functions/__init__.py,sha256=_RPG1Bfg54JGdIPnViAU6n9zD7E1cDNsdXi8oYGskzE,138
@@ -256,6 +256,6 @@ beamlit/serve/app.py,sha256=gYQvUK_S7g0Em-idND8HrVDqgg5LlIemheSGlX2Jj8U,3638
256
256
  beamlit/serve/middlewares/__init__.py,sha256=1dVmnOmhAQWvWktqHkKSIX-YoF6fmMU8xkUQuhg_rJU,148
257
257
  beamlit/serve/middlewares/accesslog.py,sha256=Mu4T4_9OvHybjA0ApzZFpgi2C8f3X1NbUk-76v634XM,631
258
258
  beamlit/serve/middlewares/processtime.py,sha256=lDAaIasZ4bwvN-HKHvZpaD9r-yrkVNZYx4abvbjbrCg,411
259
- beamlit-0.0.34rc56.dist-info/METADATA,sha256=b7oOq6dqYesq2q5ivAj5ckFcfIZ_KLdOW_HUokE0Lpc,2412
260
- beamlit-0.0.34rc56.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
261
- beamlit-0.0.34rc56.dist-info/RECORD,,
259
+ beamlit-0.0.34rc58.dist-info/METADATA,sha256=leB7qL8scaEsvPsf7flQPX2qMhC-53As1gC6YT1tB4o,2412
260
+ beamlit-0.0.34rc58.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
261
+ beamlit-0.0.34rc58.dist-info/RECORD,,