Skip to content

Commit

Permalink
v0.9.5 (#108)
Browse files Browse the repository at this point in the history
* Preparing 0.9.5

* Install cargo-deny in CI
  • Loading branch information
cottinisimone authored Jul 4, 2024
1 parent 732afff commit 438c7df
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-make
- uses: taiki-e/install-action@cargo-deny
- run: cargo make fmt-check
- run: cargo make clippy
- run: cargo deny check
- run: cargo make docs
test:
# Avoid duplicate jobs on PR from a branch on the same repo
Expand Down
77 changes: 44 additions & 33 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Changelog

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

--

## [0.9.5] - 2024-07-03

### Updated

- Bumped opentelemetry version to 0.23
Expand All @@ -15,7 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Added `error.type`, `error.kind`, `error.stack` and `error.message` to trace events (logs).
- Added `error.type`, `error.kind`, `error.stack` and `error.message` to trace
events (logs).

---

Expand All @@ -32,19 +38,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Added metadata based on the kubernetes environment variables:
* KUBE_APP_PART_OF
* KUBE_APP_MANAGED_BY
* KUBE_APP_VERSION
* KUBE_APP_INSTANCE
- KUBE_APP_PART_OF
- KUBE_APP_MANAGED_BY
- KUBE_APP_VERSION
- KUBE_APP_INSTANCE

---

## [0.9.1] - 2024-04-08

### Added

- Added an `ErrorLayer` to add `error.message`, `error.type` and `error.stack` to the log metadata when a `tracing::Event`
is an `Error`.
- Added an `ErrorLayer` to add `error.message`, `error.type` and `error.stack`
to the log metadata when a `tracing::Event` is an `Error`.

---

Expand All @@ -56,9 +62,11 @@ No new changes since 0.9.0-rc.1

- Automatically append /v1/traces to the collector endpoint

This is only done if a /v1/traces suffix isn't already there, meaning old configurations should continue to function
This is only done if a /v1/traces suffix isn't already there, meaning old
configurations should continue to function

- All log metadata is now stored in the top level object instead of under a `metadata` key.
- All log metadata is now stored in the top level object instead of under a
`metadata` key.

---

Expand All @@ -68,15 +76,17 @@ This is only done if a /v1/traces suffix isn't already there, meaning old config

- Automatically append /v1/traces to the collector endpoint

This is only done if a /v1/traces suffix isn't already there, meaning old configurations should continue to function
This is only done if a /v1/traces suffix isn't already there, meaning old
configurations should continue to function

---

## [0.9.0-rc.0] - 2024-03-04

### Changed

- All log metadata is now stored in the top level object instead of under a `metadata` key.
- All log metadata is now stored in the top level object instead of under a
`metadata` key.

---

Expand All @@ -99,7 +109,9 @@ This is only done if a /v1/traces suffix isn't already there, meaning old config
- Bump `opentelemetry` to 0.21 and remove the `rt-tokio` feature
- Bump `opentelemetry-otlp` to 0.14
- Bump `tracing-opentelemetry` to 0.22
- Move `rt-tokio-current-thread` to map to `["opentelemetry_sdk/rt-tokio-current-thread"]`, the tokio stuff has been moved to `opentelemetry_sdk`
- Move `rt-tokio-current-thread` to map to
`["opentelemetry_sdk/rt-tokio-current-thread"]`, the tokio stuff has been
moved to `opentelemetry_sdk`

---

Expand Down Expand Up @@ -166,14 +178,16 @@ This is only done if a /v1/traces suffix isn't already there, meaning old config

### Removed

- Removed the default `prima-logger` feature. This is a non-breaking change since the library already failed to compile without it.
- Removed the default `prima-logger` feature. This is a non-breaking change
since the library already failed to compile without it.

## [0.5.0] - 2022-07-04

### Changed

- SubscriberConfig env field value changed from string to enumeration (Environment)
- Update dependencies
- SubscriberConfig env field value changed from string to enumeration
(Environment)
- Update dependencies
- ⚠️ Increased the minimum rust version to 1.57.0

### Security
Expand All @@ -184,28 +198,25 @@ Avoid to depend on time 0.1 that has security issues.

### Changed

OpenTelemetry traces are now exported using the **OTLP** format instead of the Zipkin one.
⚠️ You will need to change the OpenTelemetry collector endpoint to `http://[HOSTNAME]:55681/v1/traces`.
OpenTelemetry traces are now exported using the **OTLP** format instead of the
Zipkin one.\
⚠️ You will need to change the OpenTelemetry collector endpoint to
`http://[HOSTNAME]:55681/v1/traces`.

If you are using Jaeger to collect traces locally on your machine, you will need to update your Docker Compose setup to the following:
If you are using Jaeger to collect traces locally on your machine, you will need
to update your Docker Compose setup to the following:

```yaml
jaeger:
image: jaegertracing/all-in-one:1.35
ports:
- 16686:16686
- 55681:55681
environment:
COLLECTOR_OTLP_ENABLED: true
COLLECTOR_OTLP_HTTP_HOST_PORT: 55681
jaeger:
image: jaegertracing/all-in-one:1.35
ports:
- 16686:16686
- 55681:55681
environment:
COLLECTOR_OTLP_ENABLED: true
COLLECTOR_OTLP_HTTP_HOST_PORT: 55681
```
[Unreleased]: https://github.com/primait/prima_tracing.rs/compare/0.9.4...HEAD
[0.9.4]: https://github.com/primait/prima_tracing.rs/compare/0.9.3...0.9.4
[0.9.3]: https://github.com/primait/prima_tracing.rs/compare/0.9.2...0.9.3
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
name = "prima-tracing"
readme = "README.md"
repository = "https://github.com/primait/prima_tracing.rs"
version = "0.9.4"
version = "0.9.5"

[features]
default = []
Expand Down Expand Up @@ -59,4 +59,4 @@ actix-web = "4.0.1"
opentelemetry-jaeger = {version = "0.22", features = ["integration_test"]}
prima_bridge = "0.16"
tokio = {version = "1.17", features = ["rt", "macros", "rt-multi-thread"]}
tracing-actix-web = {version = "0.7.0", features = ["opentelemetry_0_21"]}
tracing-actix-web = {version = "0.7.11", features = ["opentelemetry_0_23"]}
38 changes: 38 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[graph]
all-features = true
[output]
feature-depth = 1

[licenses]
allow = [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Unicode-DFS-2016",
"Zlib",
]

[[licenses.clarify]]
crate = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]

[licenses.private]
ignore = true

[bans]
multiple-versions = "allow"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
deny = [
{ crate = "opentelemetry", deny-multiple-versions = true }
]

[sources]
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]

0 comments on commit 438c7df

Please sign in to comment.