-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic Streaming and In-Memory Guard Support #45
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* make guard_client interface, add memory client * modify tests to use pgguard * selectively spin up postgres if pg_host is set * dont support write operations * use non serialized guards for memory guard client * add union types * handle difference between guardstruct and guard in API routes * restore previous pg functionality * fix delete route * return 501s for mutations for in memory guard, fix health check, add second guard to config file * Make Telemetry Optional (#41) * start making otel optional * test on/off, tracer initialization * setup metrics, refactor * update lock * cleanup prints * turn off console traces * remove auto-instr from docker files * compress otel init * add restrict to topic to custom install * setup custom function demo with restrict to topic --------- Co-authored-by: Caleb Courier <[email protected]> Co-authored-by: Caleb Courier <[email protected]>
Add coverage for MemoryClient
Renaming the branch closed the old PR: #30 |
When running guardrails-api-1 | File "/opt/venv/lib/python3.11/site-packages/gunicorn/util.py", line 424, in import_app
guardrails-api-1 | app = app(*args, **kwargs)
guardrails-api-1 | ^^^^^^^^^^^^^^^^^^^^
guardrails-api-1 | File "/app/app.py", line 43, in create_app
guardrails-api-1 | initialize()
guardrails-api-1 | File "/app/src/otel/__init__.py", line 25, in initialize
guardrails-api-1 | initialize_tracer()
guardrails-api-1 | File "/app/src/otel/traces.py", line 69, in initialize_tracer
guardrails-api-1 | set_span_processors(tracer_provider, exporter, use_batch)
guardrails-api-1 | File "/app/src/otel/traces.py", line 53, in set_span_processors
guardrails-api-1 | tracer_provider.add_span_processor(span_processor)
guardrails-api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
guardrails-api-1 | AttributeError: 'ProxyTracerProvider' object has no attribute 'add_span_processor' |
Fixed in ea1dbec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/validation
endpoints's custom telemetry (because of streaming)