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

[service-bus] Pass in ProcessErrorArgs to subscribe({ processError }) for extra diagnostics #11927

Merged

Conversation

richardpark-msft
Copy link
Member

@richardpark-msft richardpark-msft commented Oct 19, 2020

Changes the processError callback passed to Receiver.subscribe to take a ProcessErrorArgs which gives the user some extra context about where the error originated from (errorSource) and the host and entity path.

Near term future work - adding in additional information like the message ID (helpful when trying to correlate settlement failures) and the session ID.

Work remaining:

  • Update samples
  • Docs (if any)

Fixes #11869

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments after reviewing just the api md file. Will take a look at rest of the PR later in the day

sdk/servicebus/service-bus/review/service-bus.api.md Outdated Show resolved Hide resolved
sdk/servicebus/service-bus/review/service-bus.api.md Outdated Show resolved Hide resolved
sdk/servicebus/service-bus/review/service-bus.api.md Outdated Show resolved Hide resolved
sdk/servicebus/service-bus/review/service-bus.api.md Outdated Show resolved Hide resolved
* remove 'session' related error sources, just use 'receive'
…e sense to it since this is internal functionality and that is what 'receive' is meant to cover.
…t an error from being logged and reported to the user if it happened to be an AMQP error.

* Removed an unnecessary wrapping of the onMessage handler (cosmetic-ish).
@richardpark-msft richardpark-msft changed the title [service-bus] Pass in a ProcessErrorContext to subscribe({ processError }) for extra diagnostics [service-bus] Pass in ProcessErrorArgs to subscribe({ processError }) for extra diagnostics Oct 20, 2020
@richardpark-msft
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…so you could use an invalid string value in your test data.
@richardpark-msft
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Successfully merging this pull request may close these issues.

[Service Bus] Pass error source, namespace, entityPath details in the error callback
4 participants