Releases: grafana/grafana-plugin-sdk-go
Releases · grafana/grafana-plugin-sdk-go
v0.178.0
What's Changed
- supported multiple result sets in *sql.Rows result from db.QueryContext by @asmyasnikov in #735
New Contributors
- @asmyasnikov made their first contribution in #735
Full Changelog: v0.177.0...v0.178.0
v0.177.0
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
v0.175.0
What's Changed
- SQLUtil IntOrFloatToNullableFloat64 float32 conversion fix by @shelldandy in #729
New Contributors
- @shelldandy made their first contribution in #729
Full Changelog: v0.174.0...v0.175.0
v0.174.0
What's Changed
- Add feature flags from environment variable by @oshirohugo in #722
- Docs: Fix flagsMapFromEnv comments by @oshirohugo in #723
New Contributors
- @oshirohugo made their first contribution in #722
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
What's Changed
- Bump OpenTelemetry dependencies and its direct and indirect dependencies by @adamyeats in #719
New Contributors
- @adamyeats made their first contribution in #719
Full Changelog: v0.172.0...v0.173.0
Compatibility
# summary
Inferred base version: v0.172.0
Suggested version: v0.173.0
v0.172.0
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
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
What's Changed
- Add backend.NewLoggerWith function by @andresmgot in #715
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
What's Changed
- Chore: update to go 1.20 and grafana-plugin-ci 1.8.1 by @yuri-tceretian in #713
- FrameMeta: add PreferredVisualizationPluginId field to API by @Umaaz in #705
- Add method Fingerprint to data.Labels by @yuri-tceretian in #712
New Contributors
- @yuri-tceretian made their first contribution in #713
- @Umaaz made their first contribution in #705
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.