question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Metadata field should be passed through the input channel

See original GitHub issue

To use metadata with the input channel, you currently have to overwrite several functions in the RestInputChannel (e.g. receive, stream_response, on_message_wrapper).

Potential Solution:

  • Would be cool if we implement a function get_metadata(request) which returns None by default, and can be overwritten to return a dict of metadata
  • stream_response, on_message_wrapper should pass on a potential metadata object to UserMessage by default

https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/channel.py#L398

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
erohmensingcommented, Aug 29, 2019

would be good if all the supported channels did this by default also

1reaction
wochingecommented, Sep 13, 2019

Thanks!

I think maybe by default just the entire payload that comes in with the response, or something like that.

In my opinion that’s too much guessing. It would add a lot of overhead for certain channels to the tracker which is only required by a small subset of people. Hence, I’d prefer if we rather clarify how to quickly extend an input channel to get the required information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing through ID3 metadata - AWS Elemental MediaLive
You can set up outputs so that ID3 metadata that is in the channel input is automatically passed through to the output. To...
Read more >
Can I pass metadata through Vue Formulate's schema API ...
The solution so far:​​ I'm using Vue Formulate's schema API to generate fields. In Vue Formulate's options, I can conditionally add a class...
Read more >
How to pass metadata in POST request and then extract it?
Hi, I want to pass some extra data in POST request. ... an issue open for this: Metadata field should be passed through...
Read more >
Metadata basics and actions in Lightroom Classic
You can edit all visible metadata fields in the Metadata panel by enabling the Edit-Only mode. The current metadata values are not displayed...
Read more >
Format events for HTTP Event Collector - Splunk Documentation
Each request can contain a HEC token, a channel identifier header, event metadata, or event data, depending on whether your events are raw ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found