Skip to content

How to retrieve X-Grafana-User in the RunStream function? #1218

Closed
@dmitryk-dk

Description

@dmitryk-dk

What happened:
Hi! I checked the code of the
RunStream(ctx context.Context, request *backend.RunStreamRequest, sender *backend.StreamSender) error
function but can’t define how to get X-Grafana-User header?
Those headers doesn’t present in the request object and in the sender.
Even if i use the middlewares for the Live stream those middleware skipped and headers setted by middlewares skipped.

What you expected to happen:
My question is maybe i miss something of how to get this X-Grafana-User in the RunStream.

How to reproduce it (as minimally and precisely as possible):
Just use live stream mode to retrieve data in the datasource

Anything else we need to know?:

Environment:

  • SDK version:
  • Grafana version:
  • Go version:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions