Releases: grafana/grafana-plugin-sdk-go
v0.183.0
v0.182.0
What's Changed
Full Changelog: v0.181.0...v0.182.0
Breaking changes
Both DataSourceInstanceSettings.HTTPClientOptions and AppInstanceSettings.HTTPClientOptions now expect an argument of context.Context
.
Compatibility
gorelease -base=v0.181.0 -version=v0.182.0
# github.com/grafana/grafana-plugin-sdk-go/backend
## incompatible changes
(*AppInstanceSettings).HTTPClientOptions: changed from func() (github.com/grafana/grafana-plugin-sdk-go/backend/httpclient.Options, error) to func(context.Context) (github.com/grafana/grafana-plugin-sdk-go/backend/httpclient.Options, error)
(*DataSourceInstanceSettings).HTTPClientOptions: changed from func() (github.com/grafana/grafana-plugin-sdk-go/backend/httpclient.Options, error) to func(context.Context) (github.com/grafana/grafana-plugin-sdk-go/backend/httpclient.Options, error)
(*DataSourceInstanceSettings).ProxyOptions: changed from func() (*github.com/grafana/grafana-plugin-sdk-go/backend/proxy.Options, error) to func(*github.com/grafana/grafana-plugin-sdk-go/backend/proxy.ClientCfg) (*github.com/grafana/grafana-plugin-sdk-go/backend/proxy.Options, error)
(*GrafanaCfg).Proxy: removed
Proxy.ClientConfig: removed
## compatible changes
WithGrafanaConfig: added
# github.com/grafana/grafana-plugin-sdk-go/backend/proxy
## incompatible changes
Cli: removed
Client.ConfigureSecureSocksHTTPProxy: changed from func(*net/http.Transport, *Options) error to func(*net/http.Transport) error
Client.NewSecureSocksProxyContextDialer: changed from func(*Options) (golang.org/x/net/proxy.Dialer, error) to func() (golang.org/x/net/proxy.Dialer, error)
Client.SecureSocksProxyEnabled: changed from func(*Options) bool to func() bool
ClientCfg.Enabled: removed
New: changed from func() Client to func(*Options) Client
NewWithCfg: removed
## compatible changes
Options.ClientCfg: added
# summary
v0.182.0 is a valid semantic version for this release.
v0.181.0
What's Changed
- error source - add unwrap; convenience methods by @scottlepp in #767
Full Changelog: v0.180.0...v0.181.0
v0.180.0
What's Changed
- Tracing: Set service version tracer attribute from compile-set build info by @xnyo in #757
- Use random port in TestTenantWithPluginInstanceManagement by @xnyo in #761
- Fix tracing middleware data race when no tracer is provided by @xnyo in #759
- http status to error source by @scottlepp in #756
- Add -buildinfo and -version flags by @xnyo in #758
- Fix ErrorSource not being set in protobuf QueryDataRespone by @xnyo in #764
Full Changelog: v0.179.0...v0.180.0
v0.179.0
What's Changed
- Data: Update Apache arrow to v13 by @itsmylife in #737
- build(deps): bump github.com/magefile/mage from 1.14.0 to 1.15.0 by @dependabot in #732
- build(deps): bump golang.org/x/sys from 0.10.0 to 0.12.0 by @dependabot in #733
- build(deps): bump github.com/getkin/kin-openapi from 0.112.0 to 0.120.0 by @dependabot in #731
- allow defining a source for the error by @scottlepp in #741
- Adding EOF error handling at secure socks proxy by @leandro-deveikis in #746
New Contributors
- @itsmylife made their first contribution in #737
- @leandro-deveikis made their first contribution in #746
Full Changelog: v0.178.0...v0.179.0
Breaking Changes
data
package types should be imported from github.com/apache/arrow/go/v13/***
because of the version (v13
) update of the arrow
package.
The FromArrowRecord
and ArrowToJSON
methods have a new signature. The type of the record
parameter is arrow.Record
- func FromArrowRecord(record array.Record) (*Frame, error)
+ func FromArrowRecord(record arrow.Record) (*Frame, error)
- func ArrowToJSON(record array.Record, include FrameInclude) ([]byte, error)
+ func ArrowToJSON(record arrow.Record, include FrameInclude) ([]byte, error)
Old / New comparison
Old Type | New Type |
---|---|
array.Column |
arrow.Column |
array.Record |
arrow.Record |
array.NewChunked |
array.NewChunked |
array.Interface |
arrow.Array |
Compatibility
# github.com/grafana/grafana-plugin-sdk-go/backend
## compatible changes
DataResponse.ErrorSource: added
ErrDataResponseWithSource: added
ErrorSource: added
ErrorSourceDownstream: added
ErrorSourcePlugin: added
FrameResponseWithErrorAndSource: added
# github.com/grafana/grafana-plugin-sdk-go/data
## incompatible changes
ArrowToJSON: changed from func(github.com/apache/arrow/go/arrow/array.Record, FrameInclude) ([]byte, error) to func(github.com/apache/arrow/go/v13/arrow.Record, FrameInclude) ([]byte, error)
FromArrowRecord: changed from func(github.com/apache/arrow/go/arrow/array.Record) (*Frame, error) to func(github.com/apache/arrow/go/v13/arrow.Record) (*Frame, error)
# github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2
## compatible changes
(*DataResponse).GetErrorSource: added
DataResponse.ErrorSource: added
Data_QueryData_FullMethodName: added
Diagnostics_CheckHealth_FullMethodName: added
Diagnostics_CollectMetrics_FullMethodName: added
Resource_CallResource_FullMethodName: added
Stream_PublishStream_FullMethodName: added
Stream_RunStream_FullMethodName: added
Stream_SubscribeStream_FullMethodName: added
# summary
v0.179.0 is a valid semantic version for this release.
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.