Skip to content

v0.3.0

Compare
Choose a tag to compare
@hgiasac hgiasac released this 17 Mar 17:52
· 47 commits to v0 since this release
8203f7b

What's Changed

Behavior changes

SDK

  • The SDK no longer detects HTTP protocol via http(s) scheme in the URL. By default, the OTEL exporter uses GRPC protocol. You can change to HTTP protocol by using port 4318 or set OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf.
  • Now you can choose only one metrics exporter by OTEL_METRICS_EXPORTER=<none|otlp|prometheus> variable. By default metrics exporter is disabled (none).
  • If OTEL_METRICS_EXPORTER != prometheus, the /metrics route returns HTTP 404. You can change the Prometheus service to another port with OTEL_EXPORTER_PROMETHEUS_PORT variable.
  • Bad request HTTP status is changed to HTTP 422. Engine v3 only exposes errors with this status (source).

Generator

  • Boost generation performance to 100x with go/packages.
  • Require the function or type name in the head of the comment if using comment tags.
// CreateAuthor this procedure will be parsed (OK)
// @procedure
func CreateAuthor(ctx context.Context, state *types.State, arguments *CreateAuthorArguments) (*CreateAuthorResult, error)

// This function won't be parsed because there is no `Foo` in the head (FAIL)
// @function
func Foo(ctx context.Context, state *types.State) (bool, error)

Changelog

  • add unsafe constructors for schema and capabilities responses by @hgiasac in #38
  • add more OTEL configuration options by @hgiasac in #40
  • improve OpenTelemetry trace spans and events by @hgiasac in #42
  • improve generator performance by @hgiasac in #44

Full Changelog: v0.2.0...v0.3.0