Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Hidden listener option tag #14746

Closed
dklimpel opened this issue Dec 29, 2022 · 1 comment · Fixed by #14803
Closed

Hidden listener option tag #14746

dklimpel opened this issue Dec 29, 2022 · 1 comment · Fixed by #14803
Labels
A-Docs things relating to the documentation A-Logging Synapse's logs (structured or otherwise). Not metrics. good first issue Good for newcomers O-Occasional Affects or can be seen by some users regularly or most users rarely S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Comments

@dklimpel
Copy link
Contributor

dklimpel commented Dec 29, 2022

Description

I have seen an undocumented config option tag / site_tag in

site_tag = listener_config.http_options.tag
if site_tag is None:
site_tag = str(port)

  • Is it used and only not good documented?
  • Or is it old an deprecated?
  • Does it make sense to document it in listener documentation?
  • And does it have other purposes than replacing the port with the tag in logging?

Origin: #187

@DMRobertson
Copy link
Contributor

Thanks for spotting.

Is it used and only not good documented?

Yes, it's used and poorly documented.

Or is it old an deprecated?

Not old, not deprecated.

Does it make sense to document it in listener documentation?

Yes please!

And does it have other purposes than replacing the port with the tag in logging?

I took a look at the source code: it's only a diagnostic for logging. The option only seems to be used to configure the access logger's name, though I notice that it does get included in structured logging records:

record.site_tag = request.site_tag

@DMRobertson DMRobertson added A-Docs things relating to the documentation A-Logging Synapse's logs (structured or otherwise). Not metrics. good first issue Good for newcomers T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. O-Occasional Affects or can be seen by some users regularly or most users rarely S-Tolerable Minor significance, cosmetic issues, low or no impact to users. labels Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Docs things relating to the documentation A-Logging Synapse's logs (structured or otherwise). Not metrics. good first issue Good for newcomers O-Occasional Affects or can be seen by some users regularly or most users rarely S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants