Skip to content

Bump github.com/grafana/grafana-plugin-sdk-go from 0.158.0 to 0.162.0 #38

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 29, 2023

Bumps github.com/grafana/grafana-plugin-sdk-go from 0.158.0 to 0.162.0.

Release notes

Sourced from github.com/grafana/grafana-plugin-sdk-go's releases.

v0.162.0

What's Changed

Full Changelog: grafana/grafana-plugin-sdk-go@v0.161.0...v0.162.0

Breaking changes

Both the Instance Manager and Instance Provider interfaces have been updated to require a context.Context as part of their APIs. This affects all plugins which perform manual instance management via the Instance Manager API. Adding context as a parameter to instance management faciliates propagation of contextual information, which is useful particularly for instance caching.

For example:

package plugin
type Plugin struct {
im instancemgmt.InstanceManager
}
func (p *Plugin) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error) {
i, err := p.im.Get(ctx, req.PluginContext) // ctx is now required
if err != nil {
return nil, err
}
// ..
}

Recommended fix

Automatic instance management

Automatic instance management for data sources was added to the SDK in version 0.97.0, which removes the need for plugin developers to use the Instance Manager directly. Support for app plugins was added in v0.140.0.

To use auto instance management, please refer to the relevant SDK documentation:

The following demonstrates usage of automatic instance management:

package main
func main() {
err := datasource.Manage("grafana-test-datasource", plugin.New(), datasource.ManageOpts{})
if err != nil {
os.Exit(1)
}
</tr></table>

... (truncated)

Commits
  • 2b4a9fb Use tenant ID from incoming gRPC meta for instance caching (#676)
  • e600743 Makes sure go build manifest file is generated with POSIX separators (#687)
  • 3e2ff58 httpclient: Don't forward HTTP headers by default (#679)
  • 691f934 better comment for field.config.DisplayNameFromDS (#678)
  • 8aec1e0 Chore: Move dataplane contract docs to grafana/dataplane (#677)
  • 7ae1975 Bump dependencies (#672)
  • 0c55ef8 Data: (Docs) Update code examples to be dataplane compliant (#670)
  • 990631e Logs contract: simpler time-field (#658)
  • 7b5e7ca test: use t.Setenv and t.TempDir (#668)
  • 9e36be7 Add secure socks proxy to sdk (#667)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/grafana/grafana-plugin-sdk-go](https://github.com/grafana/grafana-plugin-sdk-go) from 0.158.0 to 0.162.0.
- [Release notes](https://github.com/grafana/grafana-plugin-sdk-go/releases)
- [Commits](grafana/grafana-plugin-sdk-go@v0.158.0...v0.162.0)

---
updated-dependencies:
- dependency-name: github.com/grafana/grafana-plugin-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants