Skip to content

Releases: grafana/grafana-plugin-sdk-go

v0.177.0

20 Sep 13:48
e5fc54a
Compare
Choose a tag to compare

What's Changed

  • Add support for grafana config to PluginContext by @wbrowne in #726
  • Add plugin version and user agent fields to PluginContext by @wbrowne in #736

Full Changelog: v0.176.0...v0.177.0

Breaking changes

Both data source and app instance factory functions now require context.Context as an argument.

datasource.InstanceFactoryFunc(
-       func(s backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {
+	func(ctx context.Context, s backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {	
        },
)

app.InstanceFactoryFunc(
-       func(s backend.AppInstanceSettings) (instancemgmt.Instance, error) {
+	func(ctx context.Context, s backend.AppInstanceSettings) (instancemgmt.Instance, error) {	
        },
)

Compatibility

# github.com/grafana/grafana-plugin-sdk-go/backend
## compatible changes
ConvertFromProtobuf.GrafanaConfig: added
ConvertFromProtobuf.UserAgent: added
ConvertToProtobuf.GrafanaConfig: added
ConvertToProtobuf.UserAgent: added
FeatureToggles: added
GrafanaCfg: added
GrafanaConfigFromContext: added
NewGrafanaCfg: added
PluginContext.GrafanaConfig: added
PluginContext.PluginVersion: added
PluginContext.UserAgent: added
Proxy: added

# github.com/grafana/grafana-plugin-sdk-go/backend/app
## incompatible changes
InstanceFactoryFunc: changed from func(github.com/grafana/grafana-plugin-sdk-go/backend.AppInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error) to func(context.Context, github.com/grafana/grafana-plugin-sdk-go/backend.AppInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error)

# github.com/grafana/grafana-plugin-sdk-go/backend/datasource
## incompatible changes
InstanceFactoryFunc: changed from func(github.com/grafana/grafana-plugin-sdk-go/backend.DataSourceInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error) to func(context.Context, github.com/grafana/grafana-plugin-sdk-go/backend.DataSourceInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error)

# github.com/grafana/grafana-plugin-sdk-go/backend/useragent
## compatible changes
package added

# github.com/grafana/grafana-plugin-sdk-go/experimental/featuretoggles
## compatible changes
EnabledFeatures: added

# github.com/grafana/grafana-plugin-sdk-go/experimental/oauthtokenretriever
## compatible changes
AppClientID: added
AppClientSecret: added
AppPrivateKey: added
AppURL: added

# github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2
## compatible changes
(*PluginContext).GetGrafanaConfig: added
(*PluginContext).GetPluginVersion: added
(*PluginContext).GetUserAgent: added
PluginContext.GrafanaConfig: added
PluginContext.PluginVersion: added
PluginContext.UserAgent: added

# summary
v0.177.0 is a valid semantic version for this release.

v0.176.0

12 Sep 14:09
05a3321
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.175.0...v0.176.0

v0.175.0

07 Sep 21:32
3e53ca6
Compare
Choose a tag to compare

What's Changed

  • SQLUtil IntOrFloatToNullableFloat64 float32 conversion fix by @shelldandy in #729

New Contributors

Full Changelog: v0.174.0...v0.175.0

v0.174.0

29 Aug 14:36
1e2d4da
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.173.0...v0.174.0

Compatibility

# github.com/grafana/grafana-plugin-sdk-go/experimental/featuretoggles
## compatible changes
package added

# summary
v0.174.0 is a valid semantic version for this release.

v0.173.0

18 Aug 16:12
976bbdf
Compare
Choose a tag to compare

What's Changed

  • Bump OpenTelemetry dependencies and its direct and indirect dependencies by @adamyeats in #719

New Contributors

Full Changelog: v0.172.0...v0.173.0


Compatibility

# summary
Inferred base version: v0.172.0
Suggested version: v0.173.0

v0.172.0

07 Aug 14:04
6126e06
Compare
Choose a tag to compare

What's Changed

  • Dependencies: Bump github.com/elazarl/goproxy to v0.0.0-20230731152917-f99041a5c027 by @xnyo in #720

Full Changelog: v0.171.0...v0.172.0

Compatibility

gorelease -base v0.171.0 -version v0.172.0
# summary
v0.172.0 is a valid semantic version for this release.

v0.171.0

17 Jul 20:09
30591d3
Compare
Choose a tag to compare

What's Changed

  • Secure socks proxy: Allow for datasource proxy options to be retrieved from one function by @stephaniehingtgen in #717
  • Secure socks proxy: Allow the proxy configuration env variables to be overriden by @stephaniehingtgen in #716

Full Changelog: v0.170.0...v0.171.0

Compatibility

# github.com/grafana/grafana-plugin-sdk-go/backend
## incompatible changes
HTTPSettings.SecureSocksProxyEnabled: removed
HTTPSettings.SecureSocksProxyPass: removed
HTTPSettings.SecureSocksProxyUsername: removed
## compatible changes
(*DataSourceInstanceSettings).ProxyOptions: added

# github.com/grafana/grafana-plugin-sdk-go/backend/proxy
## incompatible changes
ConfigureSecureSocksHTTPProxy: removed
NewSecureSocksProxyContextDialer: removed
SecureSocksProxyEnabled: removed
## compatible changes
Cli: added
Client: added
ClientCfg: added
New: added
NewWithCfg: added

# summary
v0.171.0 is a valid semantic version for this release.

Notes

  • In the socks proxy, you can now override the socks proxy configuration by instantiating the proxy client with proxy.NewWithCfg(). To continue to use the default settings that Grafana sets through environment variables, use the default CI, proxy.Cli
  • To retrieve the datasource configuration to pass in to the socks proxy, now just call ProxyOptions() on the datasource settings.

v0.170.0

17 Jul 11:08
51d836b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.169.0...v0.170.0

Compatibility

# github.com/grafana/grafana-plugin-sdk-go/backend
## compatible changes
NewLoggerWith: added

# summary
v0.170.0 is a valid semantic version for this release.

v0.169.0

13 Jul 13:33
7e35a1f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.168.0...v0.169.

Compatibility

# github.com/grafana/grafana-plugin-sdk-go/data
## compatible changes
Fingerprint: added
FrameMeta.PreferredVisualizationPluginID: added
Labels.Fingerprint: added

# summary
v0.169.0 is a valid semantic version for this release.

v0.168.0

04 Jul 14:36
7dd9759
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.167.0...v0.168.0

Compatibility

# github.com/grafana/grafana-plugin-sdk-go/experimental/oauthtokenretriever
## compatible changes
package added

# summary
v0.168.0 is a valid semantic version for this release.

Note

Due to a rebase error, history was accidentally rewritten to exclude the commit made in v0.166.0. This is why it shows that the experimental/oauthtokenretriever package was added (back) here.