Skip to content
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

feat(.NET): Consolidating APIs #17266

Merged
merged 15 commits into from
Jun 4, 2024
Merged

feat(.NET): Consolidating APIs #17266

merged 15 commits into from
Jun 4, 2024

Conversation

jeff-colucci
Copy link
Contributor

No description provided.

@jeff-colucci jeff-colucci added content requests related to docs site content from_tw Identifies issues/PRs from Tech Docs writers labels May 10, 2024
@jeff-colucci jeff-colucci self-assigned this May 10, 2024
@github-actions github-actions bot added this to Hero to triage in Docs PRs and Issues May 10, 2024
Copy link

Hi @jeff-colucci 👋

Thanks for your pull request! Your PR is in a queue, and a writer will take a look soon. We generally publish small edits within one business day, and larger edits within three days.

We will automatically generate a preview of your request, and will comment with a link when the preview is ready (usually 10 to 20 minutes).

Copy link

netlify bot commented May 10, 2024

Deploy Preview for docs-website-netlify ready!

Name Link
🔨 Latest commit d0b094f
🔍 Latest deploy log https://app.netlify.com/sites/docs-website-netlify/deploys/665f69766e5f7d00084410b3
😎 Deploy Preview https://deploy-preview-17266--docs-website-netlify.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@akristen akristen moved this from Hero to triage to Drafts in Docs PRs and Issues May 10, 2024
@jeff-colucci jeff-colucci changed the title feat(Dotnet): Consolodating APIs feat(Dotnet): Consolidating APIs May 15, 2024
@jeff-colucci jeff-colucci changed the title feat(Dotnet): Consolidating APIs feat(.NET): Consolidating APIs May 21, 2024
@jeff-colucci jeff-colucci marked this pull request as ready for review May 22, 2024 15:35
removing superfluous callout
@jeff-colucci jeff-colucci moved this from Drafts to Needs review in Docs PRs and Issues May 22, 2024
@jeff-colucci
Copy link
Contributor Author

@austin-schaefer austin-schaefer requested review from austin-schaefer and removed request for bradleycamacho May 22, 2024 22:13
Copy link
Collaborator

@austin-schaefer austin-schaefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Jeff, just finished a review. I found three types of things to address:

  • Various rendering / structural things (visible anchor ID, missing collapser tags, tables-in-tables) that should be fixed before merge
  • We need to account for existing links to these pages. Some of those are links w/in the page, but we should also account for existing links to individual methods in other docs that will break. We can create a separate Jira for that sweep but let's ensure we don't let it fall thru the cracks.
  • Non-fatals: I found a lot of style/grammar/formattng errors and inconsistencies. I suspect many of those were pre-existing in the source docs, and I don't think we need to get these to 100%. But I'd like to fix the low-hanging fruit while we're working on this

- Agents
- NET agent
- API guides
metaDescription: 'A goal-focused guide to the New Relic .NET agent API.'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This meta-description feels outdated for the current scope of the doc.

- /docs/agents/net-agent/net-agent-api/tracemetadata-net-agent-api-0
- /docs/apm/agents/net-agent/net-agent-api/tracemetadata-net-agent-api-0

freshnessValidatedDate: never
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be updated


New Relic's .NET agent includes an API that allows you to extend the agent's standard functionality. For example, you can use the .NET agent API for:

* Customizing your app name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary -ing verbs

freshnessValidatedDate: never
---

New Relic's .NET agent includes an API that allows you to extend the agent's standard functionality. For example, you can use the .NET agent API for:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
New Relic's .NET agent includes an API that allows you to extend the agent's standard functionality. For example, you can use the .NET agent API for:
New Relic's .NET agent includes an API that allows you to extend the agent's standard functionality. For example, you can use the .NET agent API to:

To use the .NET agent API, make sure you have the [latest .NET agent release](/docs/release-notes/agent-release-notes/net-release-notes). Then, add a reference to the agent in your project using one of the two options below:

* Add a reference to `NewRelic.Api.Agent.dll` to your project.
OR
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs an extra line break or something to show up on its own line, in preview it shows up on same line

Uploading image.png…

</tbody>
</table>

### NoticeError(String, IDictionary, bool) [#string-idictionary-bool-overload]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be its own collapser?

<Callout variant="important">
* Sending a lot of events can increase the memory overhead of the agent.
* Additionally, posts greater than 1MB (10^6 bytes) in size will not be recorded regardless of the maximum number of events.
* Custom Events are limited to 64-attributes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Custom Events are limited to 64-attributes.
* Custom events are limited to 64 attributes.

Caps and hyphen here are weird


### Requirements

* Agent version 5.0.136.0 or higher.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


This API call is compatible with:

* Agent versions >= 10.9.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other calls say "or higher" rather than use puncutation


### Requirements

* Agent version 5.0.136.0 or higher.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same version comment as previous, this is EOl version

### Syntax

```cs
public interfac IAgent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Suggested change
public interfac IAgent
public interface IAgent
Suggested change
public interfac IAgent
public interfac IAgent

### Syntax

```cs
public interfac ITransaction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Suggested change
public interfac ITransaction
public interface ITransaction
Suggested change
public interfac ITransaction
public interfac ITransaction

### Syntax

```cs
Public interfac ISpan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Suggested change
Public interfac ISpan
Public interfac ISpan


You can also customize some of the .NET agent's default behavior by adjusting [configuration settings](/docs/agents/net-agent/configuration/net-agent-configuration) or using [custom instrumentation](/docs/agents/net-agent/custom-instrumentation/introduction-net-custom-instrumentation).

## Requirements
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Requirements
## Requirements [#requirements]


* View and download the API package from the [NuGet Package Library](https://www.nuget.org/packages/NewRelic.Agent.Api/).

## List of API calls
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## List of API calls
## List of API calls [#api-calls]


#### Disable automatic and manual injection

This example disables <DoNotTranslate>**both**</DoNotTranslate> automatic and manual injection of the snippet:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would check a lot of these donottranslate tags - I don't think they're always appropriate for the context

</Collapser>
<Collapser
id="AcceptDistributedTracePayload"
title="AcceptDistributedTracePayload"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title="AcceptDistributedTracePayload"
title="AcceptDistributedTracePayload (obsolete)"


<tr>
<td>
[`AcceptDistributedTracePayload` (obsolete)](/docs/apm/agents/net-agent/net-agent-api/net-agent-api/#InsertDistributedTraceHeaders)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[`AcceptDistributedTracePayload` (obsolete)](/docs/apm/agents/net-agent/net-agent-api/net-agent-api/#InsertDistributedTraceHeaders)
[`AcceptDistributedTracePayload` (obsolete)](/docs/apm/agents/net-agent/net-agent-api/net-agent-api/#AcceptDistributedTracePayload)
Suggested change
[`AcceptDistributedTracePayload` (obsolete)](/docs/apm/agents/net-agent/net-agent-api/net-agent-api/#InsertDistributedTraceHeaders)
[`AcceptDistributedTracePayload` (obsolete)](/docs/apm/agents/net-agent/net-agent-api/net-agent-api/#InsertDistributedTraceHeaders)


<CollapserGroup>
<Collapser
id="add-custom-attr"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
id="add-custom-attr"
id="AddCustomAttribute"


Notice an error and report it to New Relic along with optional custom attributes. For each transaction, the agent only retains the exception and attributes from the first call to `NoticeError()`. You can pass an actual exception, or pass a string to capture an arbitrary error message.

If this method is invoked within a [transaction](/docs/glossary/glossary/#transaction), the agent reports the exception within the parent transaction. If it is invoked outside of a transaction, the agent creates an [error trace](/docs/errors-inbox/errors-inbox) and categorizes the error in the New Relic UI as a `NewRelic.Api.Agent.NoticeError` API call. If invoked outside of a transaction, the `NoticeError()` call will not contribute to the error rate of an application.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's nothing on the errors inbox page about error trace

</td>

<td>
Required. Specify a string to report to New Relic as though it's an exception. This method creates both [error events and error traces](/docs/tutorial-error-tracking/respond-outages/). Only the first 1023 characters are retained in error events, while error traces retain the full message.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's nothing about error events/error traces on that doc

* Agent version 6.16 or higher.

<Callout variant="important">
This method only works when used within a transaction created using the `Transaction` attribute with the `Web` property set to `true`. (See [Instrument using attributes](/docs/agents/net-agent/api-guides/net-agent-api-instrument-using-attributes).) It provides support for custom web-based frameworks that the agent does not automatically support.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This method only works when used within a transaction created using the `Transaction` attribute with the `Web` property set to `true`. (See [Instrument using attributes](/docs/agents/net-agent/api-guides/net-agent-api-instrument-using-attributes).) It provides support for custom web-based frameworks that the agent does not automatically support.
This method only works when used within a transaction created using the `Transaction` attribute with the `Web` property set to `true` (see [Custom instrumentation via attributes](/docs/agents/net-agent/api-guides/net-agent-api-instrument-using-attributes)). It provides support for custom web-based frameworks that the agent does not automatically support.


### Description

Sets the URI of the current transaction. The URI appears in the 'request.uri' [attribute](/docs/agents/net-agent/attributes/net-agent-attributes) of [transaction traces](/docs/apm/transactions/transaction-traces/transaction-traces) and [transaction events](/docs/using-new-relic/metrics/analyze-your-metrics/data-collection-metric-timeslice-event-data), and also can affect transaction naming.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Sets the URI of the current transaction. The URI appears in the 'request.uri' [attribute](/docs/agents/net-agent/attributes/net-agent-attributes) of [transaction traces](/docs/apm/transactions/transaction-traces/transaction-traces) and [transaction events](/docs/using-new-relic/metrics/analyze-your-metrics/data-collection-metric-timeslice-event-data), and also can affect transaction naming.
Sets the URI of the current transaction. The URI appears in the `request.uri` attribute of [transaction traces](/docs/apm/transactions/transaction-traces/transaction-traces) and [transaction events](/docs/using-new-relic/metrics/analyze-your-metrics/data-collection-metric-timeslice-event-data), and it also can affect transaction naming.

@jeff-colucci jeff-colucci merged commit f729870 into develop Jun 4, 2024
21 checks passed
@jeff-colucci jeff-colucci deleted the net-api-restructuring branch June 4, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content requests related to docs site content from_tw Identifies issues/PRs from Tech Docs writers
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants