-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pt] Translate concepts/instrumentation-scope #5604
Open
vitorvasc
wants to merge
16
commits into
open-telemetry:main
Choose a base branch
from
vitorvasc:ptbr_translate_concepts_instrumentation_scope
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+49
−0
Open
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
cf8dfc4
docs: pt location for concepts/instrumentation-scope
vitorvasc 0d25d65
Merge branch 'main' into ptbr_translate_concepts_instrumentation_scope
vitorvasc e046d99
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc 804a99d
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc 33f36fc
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc a6c808b
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc d38a7a1
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc 86e0449
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc e6a910b
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc d1cb658
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc 257d0d0
Update content/pt/docs/concepts/instrumentation-scope/index.md
vitorvasc 6123816
Merge branch 'main' into ptbr_translate_concepts_instrumentation_scope
vitorvasc 38ce3cd
Results from /fix:all
opentelemetrybot 6804d7b
Merge branch 'main' into ptbr_translate_concepts_instrumentation_scope
edsoncelio a7f09ce
Merge branch 'main' into ptbr_translate_concepts_instrumentation_scope
emdneto 3d23bd0
Merge branch 'main' into ptbr_translate_concepts_instrumentation_scope
edsoncelio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: Escopo de instrumentação | ||
weight: 80 | ||
default_lang_commit: 2f34c456ab38b4d3502cd07bc36fa1455d4ef875 | ||
--- | ||
|
||
O [escopo de instrumentação](/docs/specs/otel/glossary/#instrumentation-scope) | ||
representa uma unidade lógica dentro do código da aplicação com a qual a | ||
telemetria emitida pode ser associada. | ||
|
||
Os desenvolvedores podem decidir o que denota um escopo de instrumentação | ||
razoável. Por exemplo, é possível selecionar um módulo, um pacote ou uma classe | ||
como o escopo de instrumentação. No caso de uma biblioteca ou um _framework_, | ||
uma abordagem comum é utilizar como escopo um identificador que seja exclusivo | ||
para aquela biblioteca ou _framework_, como seu respectivo nome e versão. Caso a | ||
biblioteca em si não possua instrumentação OpenTelemetry incorporada, e uma | ||
biblioteca de instrumentação esteja sendo utilizada em seu lugar, utilize a | ||
combinação do nome e a versão da biblioteca de instrumentação como o escopo de | ||
instrumentação. | ||
|
||
O escopo de instrumentação é definido por uma combinação do par entre nome e | ||
versão quando uma instância do _tracer_, _meter_ ou _logger_ são obtidos de um | ||
_provider_. Cada registro de trecho, métrica ou log criados por esta instância | ||
serão então associados ao escopo de instrumentação fornecido. | ||
|
||
No seu backend de observabilidade, a utilização de escopos permite que os dados | ||
de telemetria sejam analisados de maneira agrupada, por exemplo, para ver quais | ||
de seus usuários estão utilizando quais versões de uma biblioteca e qual a | ||
performance destas versões, ou até mesmo para identificar um determinado | ||
problema em um módulo específico da sua aplicação. | ||
|
||
O diagrama a seguir ilustra um rastro com múltiplos escopos de instrumentação. | ||
Os diferentes escopos são representados por diferentes cores: | ||
|
||
- No topo, o trecho `/api/placeOrder` é criado através do _framework_ do | ||
servidor HTTP. | ||
- Os trechos em verde (`CheckoutService::placeOrder`, `prepareOrderItems` e | ||
`checkout`) são códigos da aplicação, agrupados através da classe | ||
`CheckoutService`. | ||
- Os trechos em `CartService::getCart` e `ProductService::getProduct` também são | ||
códigos da aplicação, agrupados através das classes `CartService` e | ||
`ProductService`. | ||
- Os trechos em laranja (`Cache::find`) e azul claro (`DB::query`) são códigos | ||
de biblioteca, agrupados através dos respectivos nomes e versões de cada. | ||
|
||
![Esta imagem ilustra um rastro com múltiplos escopos de instrumentação](spans-with-instrumentation-scope.svg) |
3 changes: 3 additions & 0 deletions
3
...ent/pt/docs/concepts/instrumentation-scope/spans-with-instrumentation-scope.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chalin I think images do not need to be copied, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it makes sense to keep the original source!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@svrnm @chalin Uhh, the original image is located on
content/en/docs/concepts/instrumentation-scope/spans-with-instrumentation-scope.svg
.Shall we move it to the /static/img folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as far as I know if you leave it out it will be picked from the
en
version but I am not 100% sure about that. @chalin knows best but is out of office until early next week, let's give him some time to take a look and respondThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! No worries. Thanks @svrnm :)