Skip to content

Commit

Permalink
Add provider name to Logs exporter option
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed Jun 14, 2024
1 parent bfe90c2 commit 77322ed
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@ namespace user_events
namespace logs
{

constexpr std::string kDefaultUserEventsLogsProviderName = "opentelemetry_logs";

/**
* Struct to hold the options needed for the user_events logs exporter.
*/

struct ExporterOptions
{
std::string provider_name = "opentelemetry-logs";
public:
ExporterOptions() : ExporterOptions(kDefaultUserEventsLogsProviderName) {}

ExporterOptions(std::string provider_name) : provider_name(provider_name) {}

std::string provider_name;
};

} // namespace logs
Expand Down

0 comments on commit 77322ed

Please sign in to comment.