You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.yaml
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
---
3
3
version: "2"
4
4
linters:
5
-
enable: # list taken from https://golangci-lint.run/usage/linters/ - last updated 2026-01-09 for v2.8.0
5
+
enable: # list taken from https://golangci-lint.run/usage/linters/ - last updated 2026-05-11 for v2.12.2
6
6
# enabled by default, but list them here to be explicit
7
7
- errcheck
8
8
- govet
@@ -16,6 +16,7 @@ linters:
16
16
- bidichk # checks for dangerous unicode character sequences
17
17
- bodyclose # checks whether HTTP response body is closed successfully
18
18
- canonicalheader # checks for canonical names in HTTP headers
19
+
- clickhouselint # detects common mistakes with the ClickHouse native Go driver API
19
20
- containedctx # detects struct contained context.Context field
20
21
#- contextcheck # checks for inherited context.Context
21
22
- copyloopvar # detects places where loop variables are copied
@@ -45,15 +46,16 @@ linters:
45
46
- gochecknoinits # checks that no init functions are present in Go code
46
47
- gochecksumtype # checks exhaustiveness on Go "sum types"
47
48
#- gocognit # Computes and checks the cognitive complexity of functions
48
-
- goconst # finds repeated strings that could be replaced by a constant
49
+
#- goconst # finds repeated strings that could be replaced by a constant
49
50
- gocritic # provides diagnostics that check for bugs, performance and style issues
50
51
#- gocyclo # Computes and checks the cyclomatic complexity of functions
51
52
- godoclint # Checks golang docs best practices (godoc)
52
53
#- godot # Check if comments end in a period
53
54
#- godox # Tool for detection of FIXME, TODO and other comment keywords
54
55
#- goheader # Checks is file header matches to pattern
55
56
- gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
56
-
- gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations
57
+
#- gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations
58
+
- gomodguard_v2 # Allow and blocklist linter for direct Go module dependencies
57
59
- goprintffuncname # checks that printf-like functions are named with f at the end
58
60
- gosec # inspects source code for security problems
59
61
- gosmopolitan # Report certain i18n/l10n anti-patterns in your Go codebase.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [0.5.0] - 2026-05-11
11
+
10
12
### Added
11
13
12
14
-`workflows`: Added `client.Jobs.QueryLogs` and `client.Jobs.QuerySpans` to query logs and trace spans for a job, plus a telemetry query example.
15
+
-`workflows`: Added `ConfigureConsoleLogging` to enable console log output that composes with the Tilebox OpenTelemetry log exporter.
16
+
-`workflows`: Added `WithSpan` and `WithSpanResult` helpers to start spans from the current task execution context without manually passing a tracer.
17
+
18
+
### Changed
19
+
20
+
-`workflows`: Correlate context-aware task logs with traces by adding `trace_id`, `span_id`, and `task_id` attributes and recording log messages as span events.
21
+
-`examples`: Updated workflow and dataset examples to use context-aware `slog` methods.
13
22
14
23
## [0.4.0] - 2026-03-06
15
24
@@ -81,7 +90,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
81
90
- Added support for Tilebox Observability, including logging and tracing helpers.
`workflows.NewClient()` configures Tilebox OpenTelemetry export when an API key is available. `workflows.ConfigureConsoleLogging` adds console output without replacing the Tilebox exporter, so logs are written to both destinations when both are configured.
119
+
117
120
### Running a Worker
118
121
119
122
Here we create a TaskRunner and run a worker that is capable of executing `HelloTask` tasks:
Copy file name to clipboardExpand all lines: examples/README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,21 +12,24 @@ Head over to [Tilebox Console](https://console.tilebox.com/account/api-keys) if
12
12
Each example can be run using the following command:
13
13
14
14
```bash
15
-
go run ./<example-folder>
15
+
go run ./examples/<example-folder>
16
16
```
17
17
18
-
For example, to run the `workflows/helloworld/submitter` example:
19
-
x
18
+
For example, to run the `workflows/helloworld` example:
19
+
20
20
```bash
21
-
go run ./workflows/helloworld/submitter
21
+
go run ./examples/workflows/helloworld
22
22
```
23
23
24
+
Workflow examples submit a job first, then start a task runner in the same process.
25
+
24
26
## Workflows examples
25
27
26
28
-[Hello world](workflows/helloworld): How to submit a task and run it.
29
+
-[MapReduce](workflows/mapreduce): How to fan out tasks and submit dependent reduce tasks.
30
+
-[Progress](workflows/progress): How to report workflow progress.
27
31
-[Protobuf tasks](workflows/protobuf-task): How to use Protobuf tasks.
28
-
-[Axiom Observability](workflows/axiom): How to set up tracing and logging for workflows using [Axiom](https://axiom.co/) observability platform.
29
-
-[OpenTelemetry Observability](workflows/opentelemetry): How to set up tracing and logging for workflows using [OpenTelemetry](https://opentelemetry.io/).
32
+
-[Observability](workflows/observability): How to query Tilebox workflow telemetry and export traces/logs to custom Axiom or OpenTelemetry backends.
0 commit comments