Skip to content

Commit

Permalink
update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiemontese committed Oct 10, 2024
1 parent 50d18ec commit 5361e40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ and this project adheres to

### Changed

-
- Removed the following, in favour of
- `http.client.ip` => `client.address`
- `http.flavor` => `network.protocol.name`
- `http.method` => `http.request.method`
- `http.scheme` => `url.scheme`
- `http.status_code` => `http.response.status_code`
- `http.target` => split in `url.path` and `url.query`
- `http.user.agent` => `user_agent.original`
- `net.host.name` => `server.address`
- `net.host.port` => `server.port`
- `net.sock.peer.port` => `network.peer.port`
- `net.sock.peer.addr` => `network.peer.address`

---

Expand Down
3 changes: 1 addition & 2 deletions lib/teleplug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ defmodule Teleplug do

@client_address Atom.to_string(ClientAttributes.client_address())

@network_protocol_name Atom.to_string(NetworkAttributes.network_protocol_name())

@http_request_method Atom.to_string(HTTPAttributes.http_request_method())
@http_response_status_code Atom.to_string(HTTPAttributes.http_response_status_code())
@http_route Atom.to_string(HTTPAttributes.http_route())
Expand All @@ -35,6 +33,7 @@ defmodule Teleplug do

@network_peer_address Atom.to_string(NetworkAttributes.network_peer_address())
@network_peer_port Atom.to_string(NetworkAttributes.network_peer_port())
@network_protocol_name Atom.to_string(NetworkAttributes.network_protocol_name())

@behaviour Plug

Expand Down

0 comments on commit 5361e40

Please sign in to comment.