Skip to content

Use Socket.gethostname instead#1155

Merged
estolfo merged 6 commits intoelastic:masterfrom
estolfo:hostname
Sep 7, 2021
Merged

Use Socket.gethostname instead#1155
estolfo merged 6 commits intoelastic:masterfrom
estolfo:hostname

Conversation

@estolfo
Copy link
Contributor

@estolfo estolfo commented Sep 1, 2021

Resolves #1151

Thanks @kovyrin

@ghost
Copy link

ghost commented Sep 1, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-09-06T13:45:15.968+0000

  • Duration: 25 min 41 sec

  • Commit: 27ee042

Test stats 🧪

Test Results
Failed 0
Passed 46405
Skipped 84
Total 46489

Trends 🧪

Image of Build Times

Image of Tests

@estolfo estolfo merged commit 83124c0 into elastic:master Sep 7, 2021
v1v added a commit to v1v/apm-agent-ruby that referenced this pull request Sep 22, 2021
…thub-commands

* upstream/master: (177 commits)
  synchronize json schema specs
  synchronize json schema specs
  synchronize json schema specs
  Update exit span definition (elastic#1154)
  test: synchronizing json specs
  Handle NaN in metrics (elastic#1157)
  Use Socket.gethostname instead (elastic#1155)
  test: synchronizing json specs
  synchronize json schema specs
  Debug instrumenter test (elastic#1146)
  test: synchronizing json specs
  v4.4.0
  Disable instrumenter/metrics spec for now (elastic#1048)
  Fix CpuMem metrics on Alpine (elastic#1057)
  Fix and update changelog
  Add config option log_ecs_formatting (elastic#1053)
  ES Spy: Fake out verification for 7.14+ (elastic#1054)
  synchronize json schema specs
  Add optional span param to end_span (elastic#1039)
  Filter Jenkins branches (elastic#1046)
  ...
estolfo added a commit that referenced this pull request Mar 2, 2023
* Use Socket.gethostname instead

* Add error handling to detect_hostname

* Don't add hostname at all if it can't be detected

* Make sure to return the hash

* Update tests

* Update test description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants