Skip to content

Releases: grafana/grafana-plugin-sdk-go

v0.183.0

13 Oct 19:25
8748f16
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.182.0...v0.183.0

Compatibility

gorelease -base=v0.182.0 -version=v0.183.0
# summary
v0.183.0 is a valid semantic version for this release.

v0.182.0

13 Oct 09:10
f70736b
Compare
Choose a tag to compare

What's Changed

  • PDC: Configure proxy with info from request by @wbrowne in #754

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

12 Oct 15:39
ece8a54
Compare
Choose a tag to compare

What's Changed

  • error source - add unwrap; convenience methods by @scottlepp in #767

Full Changelog: v0.180.0...v0.181.0

v0.180.0

10 Oct 19:01
c9ccd20
Compare
Choose a tag to compare

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

03 Oct 13:50
dd41f8d
Compare
Choose a tag to compare

What's Changed

New Contributors

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

20 Sep 15:50
6485d5a
Compare
Choose a tag to compare

What's Changed

  • supported multiple result sets in *sql.Rows result from db.QueryContext by @asmyasnikov in #735

New Contributors

Full Changelog: v0.177.0...v0.178.0

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.