Skip to content

Commit

Permalink
Merge branch 'main' into superfluffy/forma-restart-logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFluffy authored Feb 10, 2025
2 parents 1e1668e + 60eefa9 commit b2af17c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/reusable-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
tags: |
type=ref,event=pr
type=match,pattern=refs/tags/${{ inputs.binary-name }}-v(.*),group=1,enable=${{ startsWith(env.FULL_REF, 'refs/tags/') }},value=${{ env.FULL_REF }}
type=sha
type=sha,format=short
type=sha,format=long
# set the actual commit SHA from the PR head instead of from the PR merge commit (alternatively, we could checkout the PR head in actions/checkout)
type=raw,value=sha-${{ github.event.pull_request.head.sha || github.sha }},enable=${{ startsWith(env.FULL_REF, 'refs/pull/') }}
# set latest tag for `main` branch
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ astria-bridge-withdrawer/ @SuperFluffy @joroshiba
astria-build-info/ @SuperFluffy @joroshiba
astria-cli/ @SuperFluffy @joroshiba
astria-composer/ @SuperFluffy @joroshiba
astria-conductor/ @SuperFluffy @joroshiba
astria-conductor/ @SuperFluffy @ethanoroshiba @joroshiba
astria-config/ @SuperFluffy @joroshiba
astria-core/ @SuperFluffy @fraser999
astria-core-address/ @SuperFluffy @fraser999
Expand Down
5 changes: 5 additions & 0 deletions crates/astria-telemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed

- Emit events on span construction or deletion in human readable logs
[#1947](https://github.com/astriaorg/astria/pull/1947).

### Added

- Initial release.
7 changes: 6 additions & 1 deletion crates/astria-telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use tracing_subscriber::{
LevelFilter,
ParseError,
},
fmt::format::FmtSpan,
layer::SubscriberExt as _,
util::{
SubscriberInitExt as _,
Expand Down Expand Up @@ -229,7 +230,11 @@ impl Config {
let mut pretty_printer = None;
if force_stdout || std::io::stdout().is_terminal() {
if pretty_print {
pretty_printer = Some(tracing_subscriber::fmt::layer().compact());
pretty_printer = Some(
tracing_subscriber::fmt::layer()
.compact()
.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE),
);
} else {
tracer_provider = tracer_provider.with_simple_exporter(
SpanExporter::builder()
Expand Down

0 comments on commit b2af17c

Please sign in to comment.