Skip to content

Conversation

@dealloc
Copy link

@dealloc dealloc commented Jan 15, 2026

Closes #1068

This PR adds hosting integration for Permify as discussed in #1068.
I've added methods for setting up the HTTP API, gRPC API, database support and watch support.

One part I need help with is the setup of OTLP, from what I gather there's a .WithOtlpExporter() method which injects variables to configure the OTLP, however Permify uses it's own variables (specifically PERMIFY_TRACER_ENDPOINT and PERMIFY_METER_ENDPOINT).

AI suggested using .WithEnvironment with a callback that fetches the endpoint variable and pass it on, however then it turns out Permify expects the host + port in the endpoint variables without a scheme.
I'm looking for the recommended / idiomatic way to handle this.

PR Checklist

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • PR doesn't include merge commits (always rebase on top of our main, if needed)
  • New integration
    • Docs are written
    • Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Contains NO breaking changes
  • Every new API (including internal ones) has full XML docs
  • Code follows all style conventions

Other information

As described above, requires some fixes to the OTLP integration

@dealloc
Copy link
Author

dealloc commented Jan 15, 2026

I notice my PR moved around some entries in tests.yaml, I used the script as described in the documentation.
I'm guessing some of those entries were added manually, let me know if we want to revert those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Permify integration

1 participant