Skip to content
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

docs: Explicitly document underlying BMQ_BROKER_URI behavior #4

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

pniedzielski
Copy link
Collaborator

libbmq supports a BMQ_BROKER_URI environment variable, which when set, overrides any broker URI passed in through the SessionOptions. As the Python SDK is a set of bindings on top of libbmq, we inherit this behavior as well. More specifically, setting BMQ_BROKER_URI overrides whatever value is passed in with the broker argument to the blazingmq.Session object. Our integration tests use the environment variable in this way, so it is important to document it correctly.

This patch documents this behavior, which is stable and supported in libbmq, is exposed through the Python SDK, and is used by the Python SDK’s tests.

`libbmq` supports a `BMQ_BROKER_URI` environment variable, which when set,
[overrides any broker URI passed in through the `SessionOptions`][envvar].  As
the Python SDK is a set of bindings on top of `libbmq`, we inherit this
behavior as well.  More specifically, setting `BMQ_BROKER_URI` overrides
whatever value is passed in with the `broker` argument to the
`blazingmq.Session` object.  Our integration tests use the environment variable
in this way, so it is important to document it correctly.

This patch documents this behavior, which is stable and supported in
`libbmq`, is exposed through the Python SDK, and is used by the Python
SDK’s tests.

[envvar]: https://bloomberg.github.io/blazingmq/docs/apidocs/cpp_apidocs/group__bmqa__session.html

Signed-off-by: Patrick M. Niedzielski <[email protected]>
@pniedzielski pniedzielski requested a review from a team as a code owner November 8, 2023 22:16
@pniedzielski pniedzielski added skip news No news entry is required and removed skip news No news entry is required labels Nov 9, 2023
@pniedzielski pniedzielski requested a review from hallfox November 9, 2023 19:21
@hallfox hallfox merged commit 6be319d into bloomberg:main Nov 9, 2023
14 of 17 checks passed
@pniedzielski pniedzielski deleted the bmq-broker-uri branch November 30, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news No news entry is required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants