internal string GetFullEndpointUrl()

in src/Core/Exporters/Concrete/BaseExporter.cs [109:126]


        internal string GetFullEndpointUrl(string endpointUrlSuffix)
        {
            // Validating suffix
            var fullEndpointUrl = BaseConfiguration.UriEndpoint;
            if (endpointUrlSuffix != null)
            {
                // Valid suffix
                if (endpointUrlSuffix == string.Empty || endpointUrlSuffix.StartsWith("/"))
                {
                    throw new ArgumentException(
                        $"{nameof(ExportMetricsAsync)} recieved an invalid endpoint url suffix - {endpointUrlSuffix}.");
                }

                fullEndpointUrl += $"/{endpointUrlSuffix}";
            }

            return fullEndpointUrl;
        }